gbranden pushed a commit to branch branden-2023-04-07
in repository groff.
commit 924aa5463acd06e66c8fc8370afc2cd6833d043e
Author: G. Branden Robinson <[email protected]>
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 352ec0568..c1a6bc92f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2023-03-24 G. Branden Robinson <[email protected]>
+
+ * 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 <[email protected]>
[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
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit