Update of bug #66815 (group groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.24.0
_______________________________________________________
Follow-up Comment #2:
commit 2a182b27792cbda74235fe10fe792464f0cfeef8
Author: G. Branden Robinson <[email protected]>
Date: Mon Feb 24 18:50:04 2025 -0600
[troff]: Fix Savannah #66815.
Implement approximate (`troff -a`) output of zero-width nodes (these are
constructed from `\Z` escape sequences, and might be better termed
"drawing position resetting nodes").
* src/roff/troff/node.h (class zero_width_node): Declare `ascii_print`
member function.
* src/roff/troff/node.cpp (ascii_print_node_list): New static helper
function iterates a node list, calling each of its elements'
`ascii_print()` member functions.
(zero_width_node::ascii_print): New member function calls the
foregoing.
Fixes <https://savannah.gnu.org/bugs/?66815>. Thanks to Dave
Kemper for the report. Problem appears to date back to groff's birth.
Before:
$ printf '\\Z@abc\\h#6n#@def\n' | ~/groff-1.23.0/bin/groff -a
<beginning of page>
def
Now:
$ printf '\\Z@abc\\h#6n#@def\n' | ./build/test-groff -a
<beginning of page>
abc def
The new behavior aligns better with that of Heirloom Doctools troff.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66815>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
