groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 32/39: [mdoc]: Fix Debian #1022179.


From: G. Branden Robinson
Subject: [groff] 32/39: [mdoc]: Fix Debian #1022179.
Date: Sat, 29 Oct 2022 15:00:00 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit f0cfdfd35a8d51a0f2d45c0992d5309b8739e4b3
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 29 11:03:46 2022 -0500

    [mdoc]: Fix Debian #1022179.
    
    * tmac/mdoc/doc-common (Ss): Indent entire subsection heading by 3 ens,
      even if it breaks across output lines.  (Change and restore
      indentation explicitly instead of using a temporary indent to achieve
      this.  Also indent absolutely by 3n instead of retreating by one
      quarter inch.)
    
    Fixes <https://bugs.debian.org/1022179>.  Thanks to наб for the report.
---
 ChangeLog            | 13 +++++++++++++
 tmac/mdoc/doc-common |  3 ++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 832ee336c..391be7ba1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2022-10-29  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [mdoc]: Fix Debian #1022179.
+
+       * tmac/mdoc/doc-common (Ss): Indent entire subsection heading by
+       3 ens, even if it breaks across output lines.  (Change and
+       restore indentation explicitly instead of using a temporary
+       indent to achieve this.  Also indent absolutely by 3n instead of
+       retreating by one quarter inch.)
+
+       Fixes <https://bugs.debian.org/1022179>.  Thanks to наб for the
+       report.
+
 2022-10-29  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/tests/doc_indents-correctly.sh: Add regression test for
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index c0c1749d1..97d3409e3 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -1498,7 +1498,7 @@
 .    sp \n[doc-paragraph-space]u
 .    if !\n[cR] \
 .      ne 3
-.    ti -.25i
+.    in 3n
 .
 .    if '\*[.T]'pdf' \
 .      pdfbookmark 3 "\*[doc-subsection-heading]"
@@ -1515,6 +1515,7 @@
 .    ss \n[doc-reg-Ss] \n[doc-reg-Ss1]
 .
 .    ta T .5i
+.    in
 .    if !\n[cR] \
 .      ne 2
 .    br



reply via email to

[Prev in Thread] Current Thread [Next in Thread]