gbranden pushed a commit to branch master
in repository groff.

commit a03e263ba31b5d8d07d79e6642b9915847c17c5d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 8 17:51:35 2026 -0600

    src/roff/troff/input.cpp: Fix Savannah #68361.
    
    * src/roff/troff/input.cpp (token::next): Throw warning in category
      "style" if the input uses `\\` to try to format a backslash, which is
      not reliable if the escape character is changed (you then get _two_
      backslashes instead).  Emit warning in category "escape" if
      encountering an escaped dot.  This member function operates only in
      interpretation mode, so no false positives occur when using `\` to
      escape a dot in copy mode, as is sometimes done when nesting macro
      definitions.
    
    Fixes <https://savannah.gnu.org/bugs/?68361>.
---
 ChangeLog | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 639a77de2..dc606844c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2026-11-01  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (token::next): Throw warning in
+       category "style" if the input uses `\\` to try to format a
+       backslash, which is not reliable if the escape character is
+       changed (you then get _two_ backslashes instead).  Emit warning
+       in category "escape" if encountering an escaped dot.  This
+       member function operates only in interpretation mode, so no
+       false positives occur when using `\` to escape a dot in copy
+       mode, as is sometimes done when nesting macro definitions.
+
+       Fixes <https://savannah.gnu.org/bugs/?68361>.
+
 2026-11-01  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp: Refactor.  Apply DRY principle.

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

Reply via email to