3 # this is really a faq2html and should only be used for this purpose
9 $_ =~ s/(http:\/\/([a
-zA
-Z0
-9_
.\#\
/-]*)[^\) .\n])/\
<a href
=\"$1\"\
>$1\
<\
/a\>/g;
11 $_ =~ s/(\\|\/)$/$1 
;/g
; # clobber backslash on end of line
35 # detect and mark Q-sections
36 if( $_ =~ /^(Q(\d*)[.:] )(.*)/) {
41 push @q, "<a name=\"$2\"></a><p class=\"faqq\">";
46 $first = " " x
$indent;
48 #print "$indent|$first|$1|\n";
64 $line =~ s/^A(\d*)[.:] *//g; # cut off the "A[num]."
65 push @a, "<p class=\"faqa\">";
71 # print "$_ matches '$first'?\n";
73 if($_ =~ /^$first(\S)/) {
78 push @a, "<p class=\"faqa\">";
89 # if we have data, we fix blank lines
90 $_ =~ s/^\s*$/\ \n/g; # empty lines are nbsp
93 elsif($_ !~ /^\s*$/) {
94 # this is not a blank line, add it