From 2f53f5a989471121a5bf1f4a5c4d4a335b0f7fdb Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 29 Jun 2011 15:38:09 +0000 Subject: 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. --- mdoc_html.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 1db351ce..ae79e2a6 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.170 2011/06/16 22:21:28 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.171 2011/06/29 15:38:09 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * @@ -1633,8 +1633,9 @@ mdoc_sp_pre(MDOC_ARGS) SCALE_VS_INIT(&su, 1); if (MDOC_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; -- cgit v1.2.3