summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-19 15:18:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-19 15:18:30 +0000
commit4adbe5cf76760740befd56e2a28d830dcc269c21 (patch)
treedf1161da41f73d57cc1f72e1e55575bff0c47825 /mdoc_term.c
parent7c66abf718a841b668e220adaff53df0c108d52f (diff)
downloadmandoc-4adbe5cf76760740befd56e2a28d830dcc269c21.tar.gz
More fixes to scaling-width multipliers (which, just to make my life difficult, differ not only between -mdoc and -man, but between various invocation, e.g., -offset and -width).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 5457836d..789d3454 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -494,13 +494,13 @@ arg2width(const struct mdoc_argv *arg, int pos)
assert(arg->value[pos]);
if ( ! a2roffsu(arg->value[pos], &su, SCALE_MAX))
- SCALE_HS_INIT(&su, strlen(arg->value[pos]) + 2);
+ SCALE_HS_INIT(&su, strlen(arg->value[pos]));
- return(term_hspan(&su));
+ /* XXX: pachemu? */
+ return(term_hspan(&su) + 2);
}
-/* FIXME: put in utility file for front-ends. */
static int
arg_listtype(const struct mdoc_node *n)
{