diff options
author | Gisle Aas <gisle@aas.no> | 2006-05-24 07:09:49 -0700 |
---|---|---|
committer | Gisle Aas <gisle@activestate.com> | 2006-05-25 07:09:15 +0000 |
commit | 03b1081f6b4ff228f3233b5407a5eaf77e3d9397 (patch) | |
tree | f9df0409ec3cd563c4472d2240a3201aae6de435 /lib/Pod | |
parent | d820f32464b89cbf6fad2e850108345a3b36aaa1 (diff) | |
download | perl-03b1081f6b4ff228f3233b5407a5eaf77e3d9397.tar.gz |
Pod::Html should not convert "foo" in `foo''
Message-ID: <lr1wujqgde.fsf@caliper.activestate.com>
p4raw-id: //depot/perl@28305
Diffstat (limited to 'lib/Pod')
-rw-r--r-- | lib/Pod/Html.pm | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/lib/Pod/Html.pm b/lib/Pod/Html.pm index 6a7d9a6356..8c999ccab5 100644 --- a/lib/Pod/Html.pm +++ b/lib/Pod/Html.pm @@ -267,7 +267,6 @@ my %Items = (); # associative array used to find the location my %Local_Items; my $Is83; -my $PTQuote; my $Curdir = File::Spec->curdir; @@ -318,7 +317,6 @@ sub init_globals { # to prevent the first <hr /> directive. $Paragraph = ''; # which paragraph we're processing (used # for error messages) - $PTQuote = 0; # status of double-quote conversion %Sections = (); # sections within this page %Local_Items = (); @@ -513,8 +511,6 @@ END_OF_HEAD my $need_dd = 0; warn "Converting input file $Podfile\n" if $Verbose; foreach my $i (0..$#poddata){ - $PTQuote = 0; # status of quote conversion - $_ = $poddata[$i]; $Paragraph = $i+1; if (/^(=.*)/s) { # is it a pod directive? @@ -1408,12 +1404,12 @@ sub process_pre { # sub pure_text($){ my $text = shift(); - process_puretext( $text, \$PTQuote, 1 ); + process_puretext( $text, 1 ); } sub inIS_text($){ my $text = shift(); - process_puretext( $text, \$PTQuote, 0 ); + process_puretext( $text, 0 ); } # @@ -1421,7 +1417,7 @@ sub inIS_text($){ # double-quotes and handling implicit C<> links. # sub process_puretext { - my($text, $quote, $notinIS) = @_; + my($text, $notinIS) = @_; ## Guessing at func() or [\$\@%&]*var references in plain text is destined ## to produce some strange looking ref's. uncomment to disable: @@ -1429,13 +1425,6 @@ sub process_puretext { my(@words, $lead, $trail); - # convert double-quotes to single-quotes - if( $$quote && $text =~ s/"/''/s ){ - $$quote = 0; - } - while ($text =~ s/"([^"]*)"/``$1''/sg) {}; - $$quote = 1 if $text =~ s/"/``/s; - # keep track of leading and trailing white-space $lead = ($text =~ s/\A(\s+)//s ? $1 : ""); $trail = ($text =~ s/(\s+)\Z//s ? $1 : ""); |