1
0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-11-23 13:13:26 +01:00

Indent # and ## to line up with text

This commit is contained in:
Drew DeVault 2020-09-20 20:42:46 -04:00
parent 678bff58ed
commit e1d9773742

@ -180,6 +180,9 @@ display_gemini(struct browser *browser, struct gemini_response *resp)
for (int n = tok.heading.level; n; --n) { for (int n = tok.heading.level; n; --n) {
col += fprintf(browser->tty, "#"); col += fprintf(browser->tty, "#");
} }
for (int n = 3 - tok.heading.level; n > 1; --n) {
col += fprintf(browser->tty, " ");
}
col += fprintf(browser->tty, " %s\n", col += fprintf(browser->tty, " %s\n",
trim_ws(tok.heading.title)); trim_ws(tok.heading.title));
break; break;