summaryrefslogtreecommitdiff
path: root/tmac/strip.sed
diff options
context:
space:
mode:
authorwl <wl>2006-06-06 16:49:39 +0000
committerwl <wl>2006-06-06 16:49:39 +0000
commit8c3feae9e730fa662359ab9f870aa01299d291da (patch)
tree5173b3bd4b2e40e8c375ac40bd889dec2129c563 /tmac/strip.sed
parentdd9643b70bbdadc74a4847195a11e02c56d6461f (diff)
downloadgroff-8c3feae9e730fa662359ab9f870aa01299d291da.tar.gz
* tmac/strip.sed: Strip `\#' also.
* doc/groff.texinfo: Document usage of \? for string comparison.
Diffstat (limited to 'tmac/strip.sed')
-rw-r--r--tmac/strip.sed4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmac/strip.sed b/tmac/strip.sed
index 069c3db1..0bb59f8f 100644
--- a/tmac/strip.sed
+++ b/tmac/strip.sed
@@ -1,8 +1,10 @@
-# strip comments, spaces, etc. after a line containing `%beginstrip%'
+# strip comments, spaces, etc., after a line containing `%beginstrip%'
/%beginstrip%/,$ {
s/^\.[ ]*/./
s/^\.\\".*/./
+ s/^\\#.*/./
s/\\".*/\\"/
+ s/\\#.*/\\/
/\(.[ad]s\)/!s/[ ]*\\"//
/\(.[ad]s\)/s/\([^ ]*\)\\"/\1/
s/\([^/]\)doc-/\1/g