gbranden pushed a commit to branch master
in repository groff.
commit 71be7fc1482d498a1efce1ff5d1068aa21499508
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Sep 1 03:49:28 2025 -0500
[troff]: "Asciify" vert motion nodes as nothing.
...suppressing non-actionable diagnostic message. (Vertical motion
nodes are produced by the `\v` escape sequences and other formatter
facilities.)
* src/roff/troff/node.h (class vmotion_node): Declare `asciify` member
function, thus overriding base class.
* src/roff/troff/node.cpp (vmotion_node::asciify): New member function
does "nothing" in the same way that those of `line_start_node` and
`vertical_size_node`s do: delete the `this` object and return.
---
ChangeLog | 14 ++++++++++++++
src/roff/troff/node.cpp | 5 +++++
src/roff/troff/node.h | 1 +
3 files changed, 20 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index ffec8515e..eb88c8d77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2025-09-01 G. Branden Robinson <[email protected]>
+
+ [troff]: "Asciify" vertical motion nodes as nothing, suppressing
+ non-actionable diagnostic message. (Vertical motion nodes are
+ produced by the `\v` escape sequence and other formatter
+ facilities.)
+
+ * src/roff/troff/node.h (class vmotion_node): Declare `asciify`
+ member function, thus overriding base class.
+ * src/roff/troff/node.cpp (vmotion_node::asciify): New member
+ function does "nothing" in the same way that those of
+ `line_start_node` and `vertical_size_node`s do: delete the
+ `this` object and return.
+
2025-08-31 G. Branden Robinson <[email protected]>
[troff]: "Asciify" device extension nodes as nothing,
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 8b5e2980a..446571d96 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -4038,6 +4038,11 @@ void device_extension_node::asciify(macro *)
delete this;
}
+void vmotion_node::asciify(macro *)
+{
+ delete this;
+}
+
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 01ff7a98c..0227486ff 100644
--- a/src/roff/troff/node.h
+++ b/src/roff/troff/node.h
@@ -405,6 +405,7 @@ class vmotion_node : public node {
public:
vmotion_node(vunits, color *);
vmotion_node(vunits, color *, statem *, int);
+ void asciify(macro *);
void tprint(troff_output_file *);
node *copy();
vunits vertical_width();
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit