summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2022-10-19 13:58:24 -0500
committerG. Branden Robinson <g.branden.robinson@gmail.com>2022-10-21 21:02:54 -0500
commit3453d8512cc44383e7554b0a85e94f5137584028 (patch)
tree8c4c8a016097121ee258d7bade7d42c40ec7e2d0
parentdf316d0cdb07600a3b31a18bdae3d2e37cc2eef9 (diff)
downloadgroff-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.
-rw-r--r--ChangeLog15
-rw-r--r--tmac/mdoc/doc-ditroff8
2 files changed, 19 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index da1f05efc..ced21fdae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
2022-10-19 G. Branden Robinson <g.branden.robinson@gmail.com>
+ * 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.
+
+2022-10-19 G. Branden Robinson <g.branden.robinson@gmail.com>
+
* tmac/mdoc/doc-ditroff: Use groff-canonical typeface names in
font selection escape sequences. Migrate 'C' to 'CR' and 'CO'
to 'CI'. (Admittedly, "Courier oblique" is more pedantically
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 *\[**]
.