/[pcre]/code/trunk/132html
ViewVC logotype

Diff of /code/trunk/132html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 461 by ph10, Mon Oct 5 10:59:35 2009 UTC revision 1602 by ph10, Tue Oct 27 16:35:12 2015 UTC
# Line 108  while (<STDIN>) Line 108  while (<STDIN>)
108    
109      # Handling .sp is subtle. If it is inside a literal section, do nothing if      # Handling .sp is subtle. If it is inside a literal section, do nothing if
110      # the next line is a non literal text line; similarly, if not inside a      # the next line is a non literal text line; similarly, if not inside a
111      # literal section, do nothing if a literal follows. The point being that      # literal section, do nothing if a literal follows, unless we are inside
112      # the <pre> and </pre> that delimit literal sections will do the spacing.      # a .nf/.ne section. The point being that the <pre> and </pre> that delimit
113      # Always skip if no previous output.      # literal sections will do the spacing. Always skip if no previous output.
114    
115      elsif (/^\.sp/)      elsif (/^\.sp/)
116        {        {
# Line 123  while (<STDIN>) Line 123  while (<STDIN>)
123            }            }
124          else          else
125            {            {
126            print TEMP "<br>\n<br>\n" if (!/^[\s.]/);            print TEMP "<br>\n<br>\n" if ($innf || !/^[\s.]/);
127            }            }
128          redo;    # Now process the lookahead line we just read          redo;    # Now process the lookahead line we just read
129          }          }
# Line 148  while (<STDIN>) Line 148  while (<STDIN>)
148          printf("<li><a name=\"TOC%d\" href=\"#SEC%d\">$title</a>\n",          printf("<li><a name=\"TOC%d\" href=\"#SEC%d\">$title</a>\n",
149            $ref, $ref);            $ref, $ref);
150          printf TEMP ("<br><a name=\"SEC%d\" href=\"#TOC1\">$title</a><br>\n",          printf TEMP ("<br><a name=\"SEC%d\" href=\"#TOC1\">$title</a><br>\n",
151            $ref, $ref);            $ref);
152          $ref++;          $ref++;
153          }          }
154        else        else

Legend:
Removed from v.461  
changed lines
  Added in v.1602

  ViewVC Help
Powered by ViewVC 1.1.5