diff options
author | 2022-05-31 18:09:57 +0000 | |
---|---|---|
committer | 2022-05-31 18:09:57 +0000 | |
commit | ea452a23a02a06e590a1b863b12b3fa42b728535 (patch) | |
tree | daad6e3ff564c8c5940bccb04cc02fd1c8ae9cc0 /regress/char/accent | |
parent | da6633e8c5db9f71ef2499ad46bc43e3854c2ac9 (diff) | |
download | mandoc-ea452a23a02a06e590a1b863b12b3fa42b728535.tar.gz mandoc-ea452a23a02a06e590a1b863b12b3fa42b728535.tar.zst mandoc-ea452a23a02a06e590a1b863b12b3fa42b728535.zip |
Trivial patch to put the roff(7) \g (interpolate format of register)
escape sequence into the correct parsing class, ESCAPE_EXPAND.
Expansion of \g is supposed to work exactly like the expansion
of the related escape sequence \n (interpolate register value),
but since we ignore the .af (assign output format) request,
we just interpolate an empty string to replace the \g sequence.
Surprising as it may seem, this actually makes a formatting difference
for deviate input like ".O\gNx" which used to raise bogus "escaped
character not allowed in a name" and "skipping unknown macro" errors
and printed nothing, whereas now it correctly prints "OpenBSD".
Diffstat (limited to 'regress/char/accent')
0 files changed, 0 insertions, 0 deletions