diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-06-29 15:38:09 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-06-29 15:38:09 +0000 |
commit | e8ac047d456be99aa702c302ba49dce872afd4fe (patch) | |
tree | e7f6b7c8555b193529ca5ccc9947eaa867eeb3f3 /mdoc_term.c | |
parent | a0711566e81ba5fc0028c367fb6c9b3a6e2ba22d (diff) | |
download | mandoc-e8ac047d456be99aa702c302ba49dce872afd4fe.tar.gz |
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 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index bf2997fa..943cc8b0 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -523,9 +523,10 @@ a2height(const struct termp *p, const char *v) { struct roffsu su; + assert(v); if ( ! a2roffsu(v, &su, SCALE_VS)) - SCALE_VS_INIT(&su, term_len(p, 1)); + SCALE_VS_INIT(&su, atoi(v)); return(term_vspan(p, &su)); } |