commit e1d9773742b9832a87e912b44d4ad9e2e34364ef
parent 678bff58ed32e77c9af90a5d8fc7b1f3c38af86c
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 20 Sep 2020 20:42:46 -0400
Indent # and ## to line up with text
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gmnlm.c b/src/gmnlm.c
@@ -180,6 +180,9 @@ display_gemini(struct browser *browser, struct gemini_response *resp)
for (int n = tok.heading.level; n; --n) {
col += fprintf(browser->tty, "#");
}
+ for (int n = 3 - tok.heading.level; n > 1; --n) {
+ col += fprintf(browser->tty, " ");
+ }
col += fprintf(browser->tty, " %s\n",
trim_ws(tok.heading.title));
break;