diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-30 04:57:17 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-30 04:57:17 +0000 |
commit | e7cea9dff6d8ebb34cdba4486eef0fcc6ac84160 (patch) | |
tree | d558da8ea1024e29662d4e86ca4c9a4406ec6ade /html.c | |
parent | 19898d0eedfd3ea99b61a0d0b1250e9d7de40040 (diff) | |
download | mandoc-e7cea9dff6d8ebb34cdba4486eef0fcc6ac84160.tar.gz |
Added newline after block-level closing tags (suggested by Joerg Sonnenberger).
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |