summaryrefslogtreecommitdiff
path: root/doc/doc-docbook/Tidytxt
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2011-02-05 00:23:31 -0500
committerPhil Pennock <pdp@exim.org>2011-02-05 00:23:31 -0500
commitb32a971138c1120763af565a142787cf3175ced7 (patch)
treec62f15e783d5403c72b55bb57b796d52a8bccb66 /doc/doc-docbook/Tidytxt
parentbc19a55bf1d4db3a09f8030484faf8a824a9805d (diff)
Strip \x{c2} from .txt files and audit.
Am unable to keep the build process from inserting spurious \x{c2} characters into the created .txt files. Strip the characters in Tidytxt. Add SanityTestText to do a final audit for non-ASCII characters in the .txt files. Dependency: pcregrep if available, else uses Perl.
Diffstat (limited to 'doc/doc-docbook/Tidytxt')
-rwxr-xr-xdoc/doc-docbook/Tidytxt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/doc-docbook/Tidytxt b/doc/doc-docbook/Tidytxt
index a56124ccf..a628b6dcf 100755
--- a/doc/doc-docbook/Tidytxt
+++ b/doc/doc-docbook/Tidytxt
@@ -38,6 +38,11 @@ foreach $line (@lines)
$line =~ s/\x{e2}\x{95}\x{b2}/\\/g;
$line =~ s/\x{e2}\x{95}\x{b3}/X/g;
+ # w3m rendering issue apparently only seen by pdp
+ # affects section numbers after the ToC, some info on spool-file -lines, etc
+ # always appears to be a spurious extra character, safely just dropped.
+ $line =~ s/\x{c2}//g;
+
if ($line =~ /^\s*$/)
{
$line = "" if $lastwasblank;