remove $prefix and $suffix if $prefix is amp in &de_er.
authorimiyazaki <imiyazaki>
Fri, 24 Oct 2003 14:09:34 +0000 (14:09 +0000)
committerimiyazaki <imiyazaki>
Fri, 24 Oct 2003 14:09:34 +0000 (14:09 +0000)
Chise_utils/Chise_utils.pm

index 5967978..2e13949 100644 (file)
@@ -238,6 +238,7 @@ sub de_er{
     $er=~/^(amp|&)?(.+?)(;)?$/
        and $prefix=$1,$er=$2,$suffix=$3;
     $prefix or $prefix="",$suffix or $suffix="";
+    if($prefix eq 'amp'){$prefix="",$suffix="";}
     if($er=~/^\d+$/){
        $output_char=pack("U",$er);
     }elsif($er=~/^U[\+\-]([a-fA-F\d]+)/){