diff options
author | Colin Watson <cjwatson@debian.org> | 2023-07-20 01:50:01 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2023-07-20 01:50:01 +0100 |
commit | 96c156c8c313e249039df80d1bc79ee7cef5f63b (patch) | |
tree | a2be19a87c48e7329ac0dee450ced9dfa3d25588 /NEWS.md | |
parent | b160d1fd2978f14eb624b817cf52b1aa2bb7d09e (diff) |
Take advantage of groff's AD string and HY register
Fixes https://gitlab.com/man-db/man-db/-/issues/23. Thanks to G.
Branden Robinson for assistance.
* src/man.c (make_roff_command) [TROFF_IS_GROFF]: Implement
`--no-hyphenation` using `-rHY=0`. This requires groff >= 1.19,
released in 2003.
(disable_hyphenation): Only define if `TROFF_IS_GROFF` is not defined.
(display): Only use the more complex hyphenation-control mechanism if
`TROFF_IS_GROFF` is not defined.
* src/man.c (disable_justification): Implement using `.ds AD l` if groff
is at least version 1.23.0.
(display): Adjust debugging output to reflect this (more or less).
* NEWS.md: Document this.
Diffstat (limited to 'NEWS.md')
-rw-r--r-- | NEWS.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -20,6 +20,8 @@ Improvements: * Add a `STANDARDS` section to `man(1)` itself. * Document that `man -K` may suffer from false negatives as well as false positives. + * Take advantage of newer `groff` facilities to implement `man + --no-hyphenation` and `man --no-justification`, if available. man-db 2.11.2 (8 January 2023) ============================== |