X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/f055f31efca6f1beea3fb65a06e16265e481e63e..d1d97a7641e06d3372f2ded9e5cb1e97b86d3c40:/doc/doc-scripts/g2h?ds=sidebyside
diff --git a/doc/doc-scripts/g2h b/doc/doc-scripts/g2h
index cbc02dbb6..282dd11fc 100755
--- a/doc/doc-scripts/g2h
+++ b/doc/doc-scripts/g2h
@@ -1,5 +1,5 @@
#! /usr/bin/perl -w
-# $Cambridge: exim/doc/doc-scripts/g2h,v 1.2 2005/01/27 10:25:35 ph10 Exp $
+# $Cambridge: exim/doc/doc-scripts/g2h,v 1.3 2005/02/17 12:17:09 ph10 Exp $
# This is a script that turns the SGCAL source of Exim's documentation into
# HTML. It can be used for both the filter document and the main Exim
@@ -655,20 +655,20 @@ elsif (/^\.display\b/)
{
print OUT "
\n";
}
-
+
# Some displays have emphasis inside them
-
+
elsif (/^\.em\b/)
{
print OUT "" if ! $inem;
$inem = 1;
- }
+ }
elsif (/^\.nem\b/)
{
print OUT "" if $inem;
$inem = 0;
- }
+ }
# There are occasional instances of .if [!]~~sys.fancy inside displays.
# In both cases we want the non-fancy alternative. (The only thing that
@@ -690,10 +690,10 @@ elsif (/^\.display\b/)
# Ignore .newline and .linelength
elsif (/^\.newline\b/ || /^\.linelength\b/) {}
-
+
# Ignore comments
-
- elsif (/^\.(\s|$)/) {}
+
+ elsif (/^\.(\s|$)/) {}
# There shouldn't be any other directives inside displays
@@ -756,9 +756,9 @@ elsif (/^\.display\b/)
# Handle configuration option definitions
-elsif (/^\.startconf\s+(.*)/)
+elsif (/^\.startconf\s+(.*)/)
{
- $confuse = $1;
+ $confuse = &handle_text($1);
}
elsif (/^\.conf\b/)
@@ -785,7 +785,7 @@ elsif (/^\.conf\b/)
&setpar(0);
&handle_index($option, 0);
print OUT "
\n"; foreach $key (sort { - my($aa) = $a; - my($bb) = $b; - + my($aa) = $a; + my($bb) = $b; + $aa =~ s/^\x93//; # Seems like the actual char values are $bb =~ s/^\x93//; # set by this time, not "" - - return ("\L$aa" eq "\L$bb")? ("$aa" cmp "$bb") : ("\L$aa" cmp "\L$bb"); + + return ("\L$aa" eq "\L$bb")? ("$aa" cmp "$bb") : ("\L$aa" cmp "\L$bb"); } keys %$hash) {