summaryrefslogtreecommitdiff
path: root/lib/Pod/Text.pm
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-05-14 18:09:07 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-14 18:09:07 +0000
commitb11ded5d5754069e6d7d7be0788bf392bea65ef8 (patch)
tree118a17f87685418d375e93c4ab57ef8f50a40ad3 /lib/Pod/Text.pm
parent357c88086d7fbc4a100250293365f8373201add6 (diff)
downloadperl-b11ded5d5754069e6d7d7be0788bf392bea65ef8.tar.gz
Retract #10094.
p4raw-id: //depot/perl@10104
Diffstat (limited to 'lib/Pod/Text.pm')
-rw-r--r--lib/Pod/Text.pm13
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