Follow-up Comment #1, bug #53314 (project groff): A new approach.
>From d83ccadc31ba5201da40695ca1ac1ff90338be86 Mon Sep 17 00:00:00 2001 From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> Date: Sat, 10 Mar 2018 11:58:05 +0000 Subject: [PATCH] tmac/strip.sed: Keep the protection (and visibility) of spaces Do not remove the protection (\") of spaces at the end of a definition of strings (line '/.[ad]s/s/\([^ ]*\)\\"/\1/' removed) Make the change only apply to definitions of strings (change '.' to '\.[ ]*' The comment escape (\") after a space in the definition of strings is used to protect spaces, make them visible and significant. Commit ae59ee569eb5cddab8bdf12a8009bd1b907a8205 is thus partially reversed. Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- tmac/strip.sed | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tmac/strip.sed b/tmac/strip.sed index c2c9e892..c5b72657 100644 --- a/tmac/strip.sed +++ b/tmac/strip.sed @@ -8,7 +8,6 @@ s/^\\#.*/./ s/\\".*/\\"/ s/\\#.*/\\/ - /.[ad]s/!s/[ ]*\\"// - /.[ad]s/s/\([^ ]*\)\\"/\1/ + /\.[ ]*[ad]s/!s/[ ]*\\"// } /^\.$/d -- 2.16.1 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53314> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ bug-groff mailing list bug-groff@gnu.org https://lists.gnu.org/mailman/listinfo/bug-groff