aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-17 08:17:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-17 08:17:40 +0000
commitcc7f2a2dc0a3200e8f8dd766ff0eddd6a3532388 (patch)
treef560b2a0ef6e0cb59d3b9b054b3f073cdb57d226 /html.c
parente475285cd277f9da6cc63e7cdf31e74385a3ccc1 (diff)
downloadmandoc-cc7f2a2dc0a3200e8f8dd766ff0eddd6a3532388.tar.gz
mandoc-cc7f2a2dc0a3200e8f8dd766ff0eddd6a3532388.tar.zst
mandoc-cc7f2a2dc0a3200e8f8dd766ff0eddd6a3532388.zip
Have synopsis_pre() in -Thtml emit P or BR, not DIVs.
Banish header and footer TABLE styling to example.style.css.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index 60839960..8d5d4793 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.116 2010/12/15 17:19:41 kristaps Exp $ */
+/* $Id: html.c,v 1.117 2010/12/17 08:17:40 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -449,6 +449,10 @@ print_otag(struct html *h, enum htmltag tag,
putchar('>');
h->flags |= HTML_NOSPACE;
+
+ if ((HTML_AUTOCLOSE | HTML_CLRLINE) & htmltags[tag].flags)
+ putchar('\n');
+
return(t);
}