[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 15/72: [mdoc]: Fix Debian #1021795.
From: |
G. Branden Robinson |
Subject: |
[groff] 15/72: [mdoc]: Fix Debian #1021795. |
Date: |
Sun, 23 Oct 2022 22:25:35 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 3453d8512cc44383e7554b0a85e94f5137584028
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Oct 19 13:58:24 2022 -0500
[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.
---
ChangeLog | 15 +++++++++++++++
tmac/mdoc/doc-ditroff | 8 ++++----
2 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index da1f05efc..ced21fdae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+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
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 *\[**]
.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 15/72: [mdoc]: Fix Debian #1021795.,
G. Branden Robinson <=