summaryrefslogtreecommitdiffstats
path: root/src/man.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:38:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:38:58 +0000
commit54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab (patch)
tree1d8aa5f85a9450353ec3fdaaa5100f60c2d6478e /src/man.c
parentAdding debian version 2.12.0-4. (diff)
downloadman-db-54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab.tar.xz
man-db-54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab.zip
Merging upstream version 2.12.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/man.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/man.c b/src/man.c
index 5d3be39..195d35d 100644
--- a/src/man.c
+++ b/src/man.c
@@ -685,13 +685,11 @@ static int get_roff_line_length (void)
{
int line_length = cat_width ? cat_width : get_line_length ();
- if (!troff || ditroff) {
- int length = line_length * 39 / 40;
- if (length > line_length - 2)
- return line_length - 2;
- else
- return length;
- } else
+ if (!troff || ditroff)
+ /* groff ≤1.23 tbl often overflows the page width by 1 column:
+ * let it do so without mangling the output completely. */
+ return line_length - 1;
+ else
return 0;
}