diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-06 13:35:08 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-06 13:35:08 +0000 |
commit | 5559a4a725d33a4f913276cda2e8e9b9b847765b (patch) | |
tree | 0d7e0593866f5acd7d8eb51cc32a69969f49f271 | |
parent | 233ca483e954fead4829c75df068ed734b00fd1b (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |