gbranden pushed a commit to branch master
in repository groff.
commit e9c5dc986acbd496b08542235c5453eeff555025
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 8 19:37:31 2026 -0600
[troff]: Continue fixing Savannah #68361.
* src/roff/troff/input.cpp (token::next): Actually throw warning in
category "style", not "escape", when encountering escaped dot ('.') in
interpretation mode.
Continues commit 59261beacf, 1 November.
---
ChangeLog | 6 ++++++
src/roff/troff/input.cpp | 3 +++
2 files changed, 9 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 1cd3222e2..830db4a09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-11-08 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (token::next): Actually throw warning
+ in category "style", not "escape", when encountering escaped dot
+ {'.'} in interpretation mode.
+
2026-11-02 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp (environment::dump): Report values of
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index b1fbbe242..3635d0a7b 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -2950,6 +2950,9 @@ void token::next()
" to format the escape character,"
" or use requests"
" to change or disable the escape character");
+ else if ('.' == cc)
+ warning(WARN_STYLE, "a dot does not require escaping when"
+ " not in copy mode");
else
warning(WARN_ESCAPE, "ignoring escape character before %1",
input_char_description(cc));
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit