aboutsummaryrefslogtreecommitdiff
path: root/g2x.c
diff options
context:
space:
mode:
authorInqiyad Sabr <sabr@ariamath.xyz>2025-11-03 13:35:59 +0600
committerInqiyad Sabr <sabr@ariamath.xyz>2025-11-03 13:35:59 +0600
commitcd2c868e83320e1edc239fa6028974461ae009c2 (patch)
tree9d7aba22451e05cc77e9c1ac1c9998cbe04a50b0 /g2x.c
parentb98bd42588017d1d8f81c66a292892d48a07a976 (diff)
Fixed <blockquote> not wrapped in <p>
Diffstat (limited to 'g2x.c')
-rw-r--r--g2x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g2x.c b/g2x.c
index 8ac18a8..33e2d44 100644
--- a/g2x.c
+++ b/g2x.c
@@ -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");