commit a429f5d86ba773fe3c1a4b8d87b90811f6a8bbfd
parent cba4dfd017893694d030202b0c538ce7313dd7ff
Author: Ondřej Fiala <ofiala@airmail.cc>
Date: Tue, 26 Mar 2024 02:07:37 +0100
gmnlm: make headings bold
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gmnlm.c b/src/gmnlm.c
@@ -961,6 +961,7 @@ repeat:
info_rows += !first_screen + 1;
}
+ if (tok.token == GEMINI_HEADING) fprintf(out, "\x1b[1m");
switch (tok.token) {
case GEMINI_TEXT:
col += fprintf(out, " ");
@@ -1058,6 +1059,7 @@ repeat:
text = NULL;
}
}
+ fprintf(out, "\x1b[m");
if (text == NULL) {
gemini_token_finish(&tok);
}