From: Gisle Aas Date: Wed, 24 May 2006 14:09:49 +0000 (-0700) Subject: Pod::Html should not convert "foo" in `foo'' X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=03b1081f6b4ff228f3233b5407a5eaf77e3d9397;p=p5sagit%2Fp5-mst-13.2.git Pod::Html should not convert "foo" in `foo'' Message-ID: p4raw-id: //depot/perl@28305 --- diff --git a/lib/Pod/Html.pm b/lib/Pod/Html.pm index 6a7d9a6..8c999cc 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
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 : "");