aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-06-29 15:38:09 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-06-29 15:38:09 +0000
commit2f53f5a989471121a5bf1f4a5c4d4a335b0f7fdb (patch)
tree3af6bd3a47d59ceeeec7573b2c6a92212f8db887 /man_html.c
parent9a1658910c9c2fa6e8b2d75172f98c96f3c99ba2 (diff)
downloadmandoc-2f53f5a989471121a5bf1f4a5c4d4a335b0f7fdb.tar.gz
mandoc-2f53f5a989471121a5bf1f4a5c4d4a335b0f7fdb.tar.zst
mandoc-2f53f5a989471121a5bf1f4a5c4d4a335b0f7fdb.zip
First fix how `sp 1' doesn't imply `1v' (it now does) and that 1
followed by non-digits, e.g. `1g', really means `1'. Next, fix some spacing issues where `sp' was invoked in -man after sections or subsections. Make sure this behaviour is mirrored in -Thtml.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/man_html.c b/man_html.c
index 393209f1..f3aab2e2 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.74 2011/06/18 20:34:08 kristaps Exp $ */
+/* $Id: man_html.c,v 1.75 2011/06/29 15:38:09 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -414,8 +414,9 @@ man_br_pre(MAN_ARGS)
SCALE_VS_INIT(&su, 1);
if (MAN_sp == n->tok) {
- if (n->child)
- a2roffsu(n->child->string, &su, SCALE_VS);
+ if (NULL != (n = n->child))
+ if ( ! a2roffsu(n->string, &su, SCALE_VS))
+ SCALE_VS_INIT(&su, atoi(n->string));
} else
su.scale = 0;