groff-commit
[Top][All Lists]
Advanced

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

[groff] 32/48: [mdoc]: Fix Savannah #63957.


From: G. Branden Robinson
Subject: [groff] 32/48: [mdoc]: Fix Savannah #63957.
Date: Fri, 31 Mar 2023 08:33:11 -0400 (EDT)

gbranden pushed a commit to branch branden-2023-03-31
in repository groff.

commit 71d1a02f09889284ea324399df2b0af552a676a4
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Mar 24 03:24:54 2023 -0500

    [mdoc]: Fix Savannah #63957.
    
    * tmac/mdoc/doc-common (Sh): Restore hyphenation configured with `HY`
      register upon entry to any new section.  Disable adjustment and
      hyphenation when in the "Synopsis" section.
    
    Fixes <https://savannah.gnu.org/bugs/?63957>.  Thanks to Alex Colomar
    for reporting an issue that brought this one to light.
---
 ChangeLog            | 9 +++++++++
 tmac/mdoc/doc-common | 5 +++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 618ea12fd..0462e2ec2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2023-03-24  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/mdoc/doc-common (Sh): Restore hyphenation configured with
+       `HY` register upon entry to any new section.  Disable adjustment
+       and hyphenation when in the "Synopsis" section.
+
+       Fixes <https://savannah.gnu.org/bugs/?63957>.  Thanks to Alex
+       Colomar for reporting an issue that brought this one to light.
+
 2023-03-24  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [mdoc]: Regression-test Savannah #63957.
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index 53a25659f..d37b4c001 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -1410,6 +1410,7 @@
 .    doc-parse-args \$@
 .
 .    ad \*[AD]
+.    hy \n[HY]
 .
 .    ie "\*[doc-sec-head]"\*[doc-section-name]" \{\
 .      doc-set-up-titles
@@ -1424,8 +1425,8 @@
 .      nr doc-in-authors-section 0
 .
 .      ie        "\*[doc-sec-head]"\*[doc-section-synopsis]" \{\
-.        if t \
-.          na
+.        na
+.        nh
 .        nr doc-in-synopsis-section 1
 .        nr doc-indent-synopsis 0
 .        nr doc-indent-synopsis-active 0



reply via email to

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