summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-30 04:57:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-30 04:57:17 +0000
commite7cea9dff6d8ebb34cdba4486eef0fcc6ac84160 (patch)
treed558da8ea1024e29662d4e86ca4c9a4406ec6ade /html.c
parent19898d0eedfd3ea99b61a0d0b1250e9d7de40040 (diff)
downloadmandoc-e7cea9dff6d8ebb34cdba4486eef0fcc6ac84160.tar.gz
Added newline after block-level closing tags (suggested by Joerg Sonnenberger).
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index ce623c8a..ffa9ed33 100644
--- a/html.c
+++ b/html.c
@@ -391,11 +391,11 @@ print_ctag(struct html *h, enum htmltag tag)
{
printf("</%s>", htmltags[tag].name);
- if (HTML_CLRLINE & htmltags[tag].flags)
+ if (HTML_CLRLINE & htmltags[tag].flags) {
h->flags |= HTML_NOSPACE;
- if (HTML_CLRLINE & htmltags[tag].flags)
h->flags |= HTML_NEWLINE;
- else
+ printf("\n");
+ } else
h->flags &= ~HTML_NEWLINE;
}