diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-10-19 13:58:24 -0500 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-10-21 21:02:54 -0500 |
commit | 3453d8512cc44383e7554b0a85e94f5137584028 (patch) | |
tree | 8c4c8a016097121ee258d7bade7d42c40ec7e2d0 /tmac/mdoc | |
parent | df316d0cdb07600a3b31a18bdae3d2e37cc2eef9 (diff) | |
download | groff-git-3453d8512cc44383e7554b0a85e94f5137584028.tar.gz |
[mdoc]: Fix Debian #1021795.
* tmac/mdoc/doc-ditroff (doc-left-parenthesis, doc-right-parenthesis)
(doc-left-bracket, doc-right-bracket): Drop thin and hair space escape
sequences from these string definitions. (Also, doc-right-bracket was
inconsistent with doc-left-bracket, the former inserting horizontal
motion only before the bracket character.) Eliminates excess space
when using Pq, Po, Pc and Bq, Bo, Bc macros and formatting for
typesetters, and aligns output with behavior of `Pq` and `Bq` as
documented in groff_mdoc(7).
Fixes <https://bugs.debian.org/1021795>. Thanks to наб for the report.
Diffstat (limited to 'tmac/mdoc')
-rw-r--r-- | tmac/mdoc/doc-ditroff | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tmac/mdoc/doc-ditroff b/tmac/mdoc/doc-ditroff index c241cb7df..09a61084b 100644 --- a/tmac/mdoc/doc-ditroff +++ b/tmac/mdoc/doc-ditroff @@ -78,12 +78,12 @@ .ds doc-Va-font \f[I] .ds doc-Xr-font \f[CR] . -.ds doc-left-parenthesis \f[R]\|(\|\f[] -.ds doc-right-parenthesis \f[R]\|)\|\f[] +.ds doc-left-parenthesis \f[R](\f[] +.ds doc-right-parenthesis \f[R])\f[] .ds lp \f[R](\f[] .ds rp \f[R])\f[] -.ds doc-left-bracket \f[R]\^[\^\f[] -.ds doc-right-bracket \f[R]\^]\f[] +.ds doc-left-bracket \f[R][\f[] +.ds doc-right-bracket \f[R]]\f[] . .tr *\[**] . |