X-Git-Url: https://git.exim.org/users/heiko/exim.git/blobdiff_plain/f055f31efca6f1beea3fb65a06e16265e481e63e..8c6732214b2c585148ead48b668a2cd819bde158:/doc/doc-scripts/g2h diff --git a/doc/doc-scripts/g2h b/doc/doc-scripts/g2h index cbc02dbb6..b6e292211 100755 --- a/doc/doc-scripts/g2h +++ b/doc/doc-scripts/g2h @@ -1,5 +1,4 @@ #! /usr/bin/perl -w -# $Cambridge: exim/doc/doc-scripts/g2h,v 1.2 2005/01/27 10:25:35 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 +654,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 +689,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 +755,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 +784,7 @@ elsif (/^\.conf\b/) &setpar(0); &handle_index($option, 0); print OUT "

$option

\n" . - "Use:  $confuse
" . + "Use:  $confuse
" . "Type:  $type
Default:  $default
\n"; } @@ -987,7 +986,7 @@ open (IN, $source_file) || die "Can't open $source_file (2nd pass)\n"; $_ = ; # Skip on till we hit the start of the first chapter, but note if we -# pass ".set chapter -1", which is used to indicate no chapter numbering for +# pass ".set chapter -1", which is used to indicate no chapter numbering for # the first chapter (we number is 0). Keep track of whether we are in macro # definitions or not, and when not, notice occurrences of .index, because this # are the "x see y" type entries. @@ -1010,7 +1009,7 @@ while (!/^\.chapter/) } $_ = ; } - + # Open the TOC file open (TOC, ">$html/${file_base}_toc.html") || @@ -1029,7 +1028,7 @@ print TOC "

$doctitle


\n