diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:38:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:38:58 +0000 |
commit | 54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab (patch) | |
tree | 1d8aa5f85a9450353ec3fdaaa5100f60c2d6478e /src/man.c | |
parent | Adding debian version 2.12.0-4. (diff) | |
download | man-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.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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; } |