gbranden pushed a commit to branch master in repository groff. commit 907c0f26e19692fe34c3b3579488ad0161dfecc9 Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Sun Sep 14 20:13:11 2025 -0500
[troff]: "Asciify" `vline` nodes as nothing. (`vline` nodes are produced by the `\L` escape sequence.) * src/roff/troff/node.h (class vline_node): Declare `asciify` member function, thus overriding base class. * src/roff/troff/node.cpp (vline_node::asciify): New member function simply does nothing. --- ChangeLog | 7 +++++++ src/roff/troff/node.cpp | 4 ++++ src/roff/troff/node.h | 1 + 3 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6af6c222d..d831d975a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2025-09-14 G. Branden Robinson <g.branden.robin...@gmail.com> + + * src/roff/troff/node.h (class vline_node): Declare `asciify` + member function, thus overriding base class. + * src/roff/troff/node.cpp (vline_node::asciify): New member + function simply does nothing. + 2025-09-14 G. Branden Robinson <g.branden.robin...@gmail.com> * src/roff/groff/tests/asciify-request-works.sh: Add test case diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp index e85eb1ee9..f22b9665e 100644 --- a/src/roff/troff/node.cpp +++ b/src/roff/troff/node.cpp @@ -4058,6 +4058,10 @@ void hyphen_inhibitor_node::asciify(macro *) { } +void vline_node::asciify(macro *) +{ +} + breakpoint *node::get_breakpoints(hunits /* width */, int /* nspaces */, breakpoint *rest, bool /* is_inner */) { diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h index 357643a2c..11c265dd2 100644 --- a/src/roff/troff/node.h +++ b/src/roff/troff/node.h @@ -456,6 +456,7 @@ public: vline_node(vunits, node *, node * /* nxt */ = 0 /* nullptr */); vline_node(vunits, node *, statem *, int, node * /* nxt */ = 0 /* nullptr */); + void asciify(macro *); node *copy(); void tprint(troff_output_file *); hunits width(); _______________________________________________ groff-commit mailing list groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit