gbranden pushed a commit to branch master in repository groff. commit 7ad201f5e8119216a4f96887594d008002b226a2 Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Wed Sep 17 23:46:32 2025 -0500
[troff]: Refactor. Explicitly "asciify" diverted copy file nodes as nothing. These correspond to the use of the `trf` request in a diversion. * src/roff/troff/input.cpp (class diverted_copy_file_node): Declare `asciify` member function, thus overriding base class. (diverted_copy_file_node::asciify): Do nothing. --- src/roff/troff/node.cpp | 4 ++++ src/roff/troff/node.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp index b1fe66844..5da34ad05 100644 --- a/src/roff/troff/node.cpp +++ b/src/roff/troff/node.cpp @@ -4052,6 +4052,10 @@ void bracket_node::asciify(macro *) { } +void diverted_copy_file_node::asciify(macro *) +{ +} + void diverted_space_node::asciify(macro *) { } diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h index 9092734d5..2c9e2d627 100644 --- a/src/roff/troff/node.h +++ b/src/roff/troff/node.h @@ -306,6 +306,7 @@ public: diverted_copy_file_node(symbol, node * /* p */ = 0 /* nullptr */); diverted_copy_file_node(symbol, statem *, int, node * /* p */ = 0 /* nullptr */); + void asciify(macro *); node *copy(); bool need_reread(bool *); bool is_same_as(node *); _______________________________________________ groff-commit mailing list groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit