groff-commit
[Top][All Lists]
Advanced

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

[groff] 33/115: [mdoc]: Fix Savannah #63957.


From: G. Branden Robinson
Subject: [groff] 33/115: [mdoc]: Fix Savannah #63957.
Date: Thu, 1 Jun 2023 10:46:04 -0400 (EDT)

gbranden pushed a commit to branch branden-2022-06-01
in repository groff.

commit 7fcf23b146d0abe9fdd291c0f7a345d3ba2ddb10
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 ab57f043e..a7b525545 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]