diff options
| author | Inqiyad Sabr <sabr@ariamath.xyz> | 2025-11-03 13:35:59 +0600 |
|---|---|---|
| committer | Inqiyad Sabr <sabr@ariamath.xyz> | 2025-11-03 13:35:59 +0600 |
| commit | cd2c868e83320e1edc239fa6028974461ae009c2 (patch) | |
| tree | 9d7aba22451e05cc77e9c1ac1c9998cbe04a50b0 /g2x.c | |
| parent | b98bd42588017d1d8f81c66a292892d48a07a976 (diff) | |
Fixed <blockquote> not wrapped in <p>
Diffstat (limited to 'g2x.c')
| -rw-r--r-- | g2x.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -40,8 +40,8 @@ int main(void) html("<h1>"); xmlput(2); html("</h1>"); } else if (buf[0] == '>') { - fputs("<blockquote>",stdout); xmlput(2); - fputs("</blockquote>\n",stdout); + fputs("<p><blockquote>",stdout); xmlput(2); + fputs("</blockquote></p>\n",stdout); } else if (buf[0] == '*') { if (list_state == 0) html("<ul>\n"); @@ -57,7 +57,7 @@ int main(void) putchar(buf[pos++]); if (buf[pos] == '.') { int i = 0; char suffix[12]; - for (i = 0; buf[pos] != ' ';) + while (buf[pos] != ' ') suffix[i++] = buf[pos++]; suffix[i] = '\0'; if (!strncmp(suffix,".gmi",4)) html(".html"); |