bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #53314] [PATCH] strip.sed: Keep the protection (and visibility) of


From: Bjarni Ingi Gislason
Subject: [bug #53314] [PATCH] strip.sed: Keep the protection (and visibility) of spaces
Date: Sat, 10 Mar 2018 07:05:52 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #1, bug #53314 (project groff):

  A new approach.

>From d83ccadc31ba5201da40695ca1ac1ff90338be86 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
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 <address@hidden>
---
 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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]