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:
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) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user