summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-06 13:35:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-06 13:35:08 +0000
commit5559a4a725d33a4f913276cda2e8e9b9b847765b (patch)
tree0d7e0593866f5acd7d8eb51cc32a69969f49f271
parent233ca483e954fead4829c75df068ed734b00fd1b (diff)
downloadmandoc-5559a4a725d33a4f913276cda2e8e9b9b847765b.tar.gz
Use the default width for .RS without arguments.
Reduces groff-mandoc differences in base and Xenocara by about 4%. Found while looking at wpa_supplicant(8).
-rw-r--r--man_term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index f0bc85cd..c688c545 100644
--- a/man_term.c
+++ b/man_term.c
@@ -879,7 +879,9 @@ pre_RS(DECL_ARGS)
n = n->parent->head;
n->aux = SHRT_MAX + 1;
- if (n->child != NULL && a2roffsu(n->child->string, &su, SCALE_EN))
+ if (n->child == NULL)
+ n->aux = mt->lmargin[mt->lmargincur];
+ else if (a2roffsu(n->child->string, &su, SCALE_EN))
n->aux = term_hspan(p, &su) / 24;
if (n->aux < 0 && (size_t)(-n->aux) > mt->offset)
n->aux = -mt->offset;