gbranden pushed a commit to branch master
in repository groff.
commit b7d51a93d6e1b32e71bc60be04921f2cdb56dd8d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Aug 24 23:27:10 2026 -0500
[troff]: Fix Savannah #68642.
* src/roff/troff/node.cpp (device_extension_node::dump_properties): Wrap
JSON output of object of type `macro` with braces since it has a
composite nature.
Fixes <https://savannah.gnu.org/bugs/?68642>. Problem introduced by me
in commit cdb50249e9, 2025-03-03.
---
ChangeLog | 10 ++++++++++
src/roff/troff/node.cpp | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index dfa51d942..f61dee844 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-08-24 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/node.cpp
+ (device_extension_node::dump_properties): Wrap JSON output of
+ object of type `macro` with braces since it has a composite
+ nature.
+
+ Fixes <https://savannah.gnu.org/bugs/?68642>. Problem
+ introduced by me in commit cdb50249e9, 2025-03-03.
+
2026-08-22 G. Branden Robinson <[email protected]>
[grog]: Fix Savannah #68635.
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index b12d0a0d9..818879b50 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -4410,8 +4410,9 @@ device_extension_node::device_extension_node(const macro
&m, tfont *t,
void device_extension_node::dump_properties()
{
node::dump_properties();
- fputs(", \"macro\": ", stderr);
+ fputs(", \"macro\": {", stderr);
mac.json_dump();
+ fputc('}', stderr);
fputs(", \"tfont\": ", stderr);
tf->get_name().json_dump();
fputs(", \"stroke_color\": ", stderr);
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit