gbranden pushed a commit to branch master
in repository groff.

commit e755217920bf937734af87e67e1140d2c58869a7
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Dec 17 16:07:13 2025 -0600

    src/roff/troff/input.cpp: Annotate an oddity.
    
    I thought I could make GNU troff break with the following:
    $ cat ec-and-so-outer.roff
    Hello,
    .ec @
    .so EXPERIMENTS/ec-and-so-inner.roff
    $ cat ec-and-so-inner.roff
    @f[B]bold world!
    
    ...but it didn't break.  I still suspect a latent bug, but don't know
    how to rouse it.
---
 src/roff/troff/input.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index fdc92c55f..f2f761ab5 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -497,7 +497,7 @@ int file_iterator::fill(node **)
        seen_newline = true;
        break;
       }
-      seen_escape = ('\\' == c);
+      seen_escape = ('\\' == c); // XXX: should be (escape_char == c)?
     }
   }
   if (p > buf) {

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

Reply via email to