diff options
| author | Inqiyad Sabr <sabr@ariamath.xyz> | 2025-11-03 23:37:18 +0600 |
|---|---|---|
| committer | Inqiyad Sabr <sabr@ariamath.xyz> | 2025-11-03 23:37:18 +0600 |
| commit | be5bdba716daa801b2f7dbdf95e44b1fcc4646e8 (patch) | |
| tree | 6626990cb6b368920f453b7332f2aa8720c09a3a /g2x.c | |
| parent | 4b4a4a8a9a17d77ee4737be93dae3b349a131201 (diff) | |
newline on heading close : (<h1,2,3>\n)
Diffstat (limited to 'g2x.c')
| -rw-r--r-- | g2x.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -33,11 +33,11 @@ int main(void) while (getbuf() != NULL) { if (!strncmp(buf,"###",3)) { - html("<h3>"); xmlput(4); html("</h3>"); + html("<h3>"); xmlput(4); html("</h3>\n"); } else if (!strncmp(buf,"##",2)) { - html("<h2>"); xmlput(3); html("</h2>"); + html("<h2>"); xmlput(3); html("</h2>\n"); } else if (buf[0] == '#') { - html("<h1>"); xmlput(2); html("</h1>"); + html("<h1>"); xmlput(2); html("</h1>\n"); } else if (buf[0] == '>') { html("<p><blockquote>"); xmlput(2); |