/[suikacvs]/markup/html/html5/spec-ja/make.pl
Suika

Diff of /markup/html/html5/spec-ja/make.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by wakaba, Sat Oct 25 06:25:57 2008 UTC revision 1.20 by wakaba, Sat Oct 25 11:28:27 2008 UTC
# Line 141  sub add_class ($$) { Line 141  sub add_class ($$) {
141    my $tag = shift;    my $tag = shift;
142    my $new_class = shift; # should not contain bare & and bare "    my $new_class = shift; # should not contain bare & and bare "
143    
144    if ($tag =~ /\bclass="/) {    if ($tag =~ /^<li\b/) {
145        ## NOTE: This |p| wrapper is necessary, otherwise, if |li| element
146        ## is set to |display: table|, then no list marker is shown.
147        $tag .= qq[<p class="$new_class ja-translation-inserted">];
148      } elsif ($tag =~ /\bclass="/) {
149      $tag =~ s/\bclass="([^"]*)"/class="$1 $new_class"/;      $tag =~ s/\bclass="([^"]*)"/class="$1 $new_class"/;
150    } elsif ($tag =~ /\bclass=/) {    } elsif ($tag =~ /\bclass=/) {
151      $tag =~ s/\bclass=([^\s>]+)/class="$1 $new_class"/g;      $tag =~ s/\bclass=([^\s>]+)/class="$1 $new_class"/g;

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24