aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-13 21:02:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-13 21:02:48 +0000
commitc01761ea13fdd499eb96561ff3f510d953048911 (patch)
treed6d307d88b265b4bdb1ddc2ce735fe04fd271da4 /mdoc_term.c
parentf2a3c128d35104b347ccd97db111a8d2670a3806 (diff)
downloadmandoc-c01761ea13fdd499eb96561ff3f510d953048911.tar.gz
mandoc-c01761ea13fdd499eb96561ff3f510d953048911.tar.zst
mandoc-c01761ea13fdd499eb96561ff3f510d953048911.zip
Allow -width for lists to be cached in mdoc_bl. This requires some
trickery because widths may be on-the-fly recalculated. I don't like how these are split between mdoc_action.c and mdoc_validate.c, but for the time being, it'll do.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 49771eaa..4261a732 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.152 2010/06/12 12:38:01 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.153 2010/06/13 21:02:49 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -731,6 +731,7 @@ termp_it_pre(DECL_ARGS)
* handling for column for how this changes.
*/
width = a2width(&bl->args->argv[vals[0]], 0) + 2;
+ assert(bl->data.Bl.width);
break;
}