summaryrefslogtreecommitdiff
path: root/132html
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-09-01 16:10:16 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-09-01 16:10:16 +0000
commitdbbbb5f823318e1665b0ae6fb2f7c12d71f66e84 (patch)
tree031067dfea13ed6f72701de1b45c97fec9e0c455 /132html
parent78dd3d00385e8c5f868d07b3fe21694299a183fe (diff)
downloadpcre-dbbbb5f823318e1665b0ae6fb2f7c12d71f66e84.tar.gz
Add pcredemo man page, containing a listing of pcredemo.c.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@429 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to '132html')
-rwxr-xr-x132html17
1 files changed, 17 insertions, 0 deletions
diff --git a/132html b/132html
index 43d1358..062babc 100755
--- a/132html
+++ b/132html
@@ -231,6 +231,23 @@ while (<STDIN>)
$_ = "$one $two";
redo; # Process the joined lines
}
+
+ # .EX/.EE are used in the pcredemo page to bracket the entire program,
+ # which is unmodified except for turning backslash into "\e".
+
+ elsif (/^\.EX\s*$/)
+ {
+ print TEMP "<PRE>\n";
+ while (<STDIN>)
+ {
+ last if /^\.EE\s*$/;
+ s/\\e/\\/g;
+ s/&/&amp;/g;
+ s/</&lt;/g;
+ s/>/&gt;/g;
+ print TEMP;
+ }
+ }
# Ignore anything not recognized