gbranden pushed a commit to branch master
in repository groff.

commit 63d3e6e0e1ea25b94d23cde3188ff0f1be18c0bf
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Mar 16 20:35:24 2024 -0500

    [man]: Fix Savannah #65469.
    
    Given a second chance, try to avoid Walter Donovan's fate.
    
    * tmac/an.tmac (an*scan-string-for-backslash): Choose an escape
      character that is much less likely than the at sign to be specified in
      a man(7) document's page footer.
    
    Fixes <https://savannah.gnu.org/bugs/?65469>.  Thanks to Thomas Dickey
    for the report.
---
 ChangeLog    | 9 +++++++++
 tmac/an.tmac | 4 ++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1f388a73f..fc47fa142 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-03-16  G. Branden Robinson <[email protected]>
+
+       * tmac/an.tmac (an*scan-string-for-backslash): Choose an escape
+       character that is much less likely than the at sign to be
+       specified in a man(7) document's page footer.
+
+       Fixes <https://savannah.gnu.org/bugs/?65469>.  Thanks to Thomas
+       Dickey for the report.
+
 2024-03-16  G. Branden Robinson <[email protected]>
 
        * tmac/tests/an_inner-footer-abbreviation-works.sh: Add
diff --git a/tmac/an.tmac b/tmac/an.tmac
index fab6fdd64..3cfdc2a84 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -537,9 +537,9 @@
 .  while (\\n[an*index] < \\n[an*max-index]) \{\
 .    ds an*char \\$*
 .    substring an*char \\n[an*index] \\n[an*index]
-.    ec @
+.    ec 
 .    \" Use a weird delimiter to reduce lexical colorizer confusion.
-.    if _@*[an*char]_\\_ .nr an*string-contains-backslash 1
+.    if _*[an*char]_\\_ .nr an*string-contains-backslash 1
 .    ec
 .    if \\n[an*string-contains-backslash] .break
 .    nr an*index +1

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to