gbranden pushed a commit to branch master in repository groff. commit 989c3045387530b82f67e6b56585007e3ea75d54 Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Wed Feb 26 04:19:41 2025 -0600
[troff]: Fix code style nit (`\0` character). * src/roff/troff/node.cpp: Fix code style nit. (glyph_node::ascii_print): Spell null character using the C/C++ language literal for expressing it. --- ChangeLog | 6 ++++++ src/roff/troff/node.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9accfe587..0c8e08c44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-02-26 G. Branden Robinson <g.branden.robin...@gmail.com> + + * src/roff/troff/node.cpp: Fix code style nit. + (glyph_node::ascii_print): Spell null character using the C/C++ + language literal for expressing it. + 2025-02-26 G. Branden Robinson <g.branden.robin...@gmail.com> * tmac/an.tmac: Trivially refactor to align with terminology diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp index 0edd47644..4ba404a39 100644 --- a/src/roff/troff/node.cpp +++ b/src/roff/troff/node.cpp @@ -2204,7 +2204,7 @@ hyphenation_type glyph_node::get_hyphenation_type() void glyph_node::ascii_print(ascii_output_file *ascii) { unsigned char c = ci->get_ascii_code(); - if (c != 0) + if (c != '\0') ascii->outc(c); else ascii->outs(ci->nm.contents()); _______________________________________________ groff-commit mailing list groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit