diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-14 18:09:07 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-14 18:09:07 +0000 |
commit | b11ded5d5754069e6d7d7be0788bf392bea65ef8 (patch) | |
tree | 118a17f87685418d375e93c4ab57ef8f50a40ad3 /lib/Pod/Text.pm | |
parent | 357c88086d7fbc4a100250293365f8373201add6 (diff) | |
download | perl-b11ded5d5754069e6d7d7be0788bf392bea65ef8.tar.gz |
Retract #10094.
p4raw-id: //depot/perl@10104
Diffstat (limited to 'lib/Pod/Text.pm')
-rw-r--r-- | lib/Pod/Text.pm | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/Pod/Text.pm b/lib/Pod/Text.pm index da21ef5304..a0dab2d6d2 100644 --- a/lib/Pod/Text.pm +++ b/lib/Pod/Text.pm @@ -472,18 +472,7 @@ sub seq_b { return $_[0]{alt} ? "``$_[1]''" : $_[1] } sub seq_f { return $_[0]{alt} ? "\"$_[1]\"" : $_[1] } sub seq_i { return '*' . $_[1] . '*' } sub seq_c { - return $_[0]{alt} - ? "``$_[1]''" - : $_[0]{LQUOTE} eq '"' && - $_[1] =~ /^\s*(?: # Some heuristics to avoid some overquoting - (['`"]).*\1 # already quoted - |\$+[\^#]?\S(\[.*\]|\{.*\})? # control or punct var? - |[\$#\@%&*]+[:'\w]+(\[.*\]|\{.*\})? # a "plain" var or func? - |[\$#\@%&*]*[:'\w]+(->)?\(\s*[^\s,]\s*\) # a call, 0 or 1 args? - |[:'\w]+ # a word - )\s*\z/x - ? $_[1] - : "$_[0]{LQUOTE}$_[1]$_[0]{RQUOTE}" + return $_[0]{alt} ? "``$_[1]''" : "$_[0]{LQUOTE}$_[1]$_[0]{RQUOTE}" } # The complicated one. Handle links. Since this is plain text, we can't |