aboutsummaryrefslogtreecommitdiff
path: root/g2x.c
diff options
context:
space:
mode:
authorInqiyad Sabr <sabr@ariamath.xyz>2025-11-03 23:37:18 +0600
committerInqiyad Sabr <sabr@ariamath.xyz>2025-11-03 23:37:18 +0600
commitbe5bdba716daa801b2f7dbdf95e44b1fcc4646e8 (patch)
tree6626990cb6b368920f453b7332f2aa8720c09a3a /g2x.c
parent4b4a4a8a9a17d77ee4737be93dae3b349a131201 (diff)
newline on heading close : (<h1,2,3>\n)
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 8416472..7fdebb7 100644
--- a/g2x.c
+++ b/g2x.c
@@ -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);