gbranden pushed a commit to branch master
in repository groff.
commit 43d5762f218a175efd64aa39d0b1883843ce1424
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Mar 7 05:47:43 2024 -0600
tmac/pspic.tmac (PSPIC): Prepare for `\X` change.
* tmac/pspic.tmac (PSPIC): Prepare for alteration of `\X` device control
escape sequence to read its argument in copy mode; use nested
backslashes instead of `\E`, which cannot meaningfully persist into
the device-independent output. (The *roff escape character is not
only undefined but meaningless in that file format.)
This change retains compatibility with earlier groff, hence its
separation.
Also tweak code style for better readability for `troff -Z` output.
---
ChangeLog | 9 +++++++++
tmac/pspic.tmac | 4 ++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bf09e3a69..17356b6cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-03-07 G. Branden Robinson <[email protected]>
+
+ * tmac/pspic.tmac (PSPIC): Prepare for alteration of `\X` device
+ control escape sequence to read its argument in copy mode; use
+ nested backslashes instead of `\E`, which cannot meaningfully
+ persist into the device-independent output. (The *roff escape
+ character is not only undefined but meaningless in that file
+ format.)
+
2024-03-07 G. Branden Robinson <[email protected]>
* src/roff/troff/node.cpp (ascii_output_file::outc)
diff --git a/tmac/pspic.tmac b/tmac/pspic.tmac
index 98f9ba4f1..5f0871aaa 100644
--- a/tmac/pspic.tmac
+++ b/tmac/pspic.tmac
@@ -129,8 +129,8 @@
. \" between those two escapes
. ds ps-invis \X'ps: invis'
. ds ps-endinvis \X'ps: endinvis'
-. ds ps-import \X'ps: import \E$1 \En[llx] \En[lly] \En[urx] \En[ury] \
- \En[ps-deswid] \E*[ps-desht]'
+. ds ps-import \X'ps: import \\\\$1 \\\\n[llx] \\\\n[lly] \
+\\\\n[urx] \\\\n[ury] \\\\n[ps-deswid] \\\\*[ps-desht]'
. \}
. el \{\
. ds ps-invis
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit