summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-10-10 09:59:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-10-10 09:59:48 +0000
commit3d378740b04b9c699a76ada1be91544f7cbb44fa (patch)
tree91c4e5ba7bde80fbeb00c96e797c10c4c4e6526f /mdoc_html.c
parent7c883a6afda56f0ec3e7463a1c7ef6c39f7207ee (diff)
downloadmandoc-3d378740b04b9c699a76ada1be91544f7cbb44fa.tar.gz
`Sm' no longer produces a linebreak when used in `Bd'.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 2974f1b3..6f5c8a81 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1323,6 +1323,8 @@ mdoc_bd_pre(MDOC_ARGS)
* anyway, so don't sweat it.
*/
switch (nn->tok) {
+ case (MDOC_Sm):
+ /* FALLTHROUGH */
case (MDOC_br):
/* FALLTHROUGH */
case (MDOC_sp):
@@ -1603,7 +1605,16 @@ mdoc_sm_pre(MDOC_ARGS)
assert(n->child && MDOC_TEXT == n->child->type);
if (0 == strcmp("on", n->child->string)) {
- /* FIXME: no p->col to check... */
+ /*
+ * FIXME: no p->col to check. Thus, if we have
+ * .Bd -literal
+ * .Sm off
+ * 1 2
+ * .Sm on
+ * 3
+ * .Ed
+ * the "3" is preceded by a space.
+ */
h->flags &= ~HTML_NOSPACE;
h->flags &= ~HTML_NONOSPACE;
} else