summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}