/[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.13 by wakaba, Sun Aug 10 04:16:33 2008 UTC revision 1.14 by wakaba, Sun Aug 10 06:15:00 2008 UTC
# Line 29  my $source_text; Line 29  my $source_text;
29  open my $tbt_file, '>:utf8', $tbt_file_name or die "$0: $tbt_file_name: $!";  open my $tbt_file, '>:utf8', $tbt_file_name or die "$0: $tbt_file_name: $!";
30    
31  my $status = {};  my $status = {};
32    my $tbt_added = {};
33    
34  warn "Generating...\n";  warn "Generating...\n";
35  $source_text =~ s{(<(?>p(?>re)?|li|d[td]|t[dh]|h[1-6])(?>\s[^>]*)?>)((?>(?!</?(?>p(?>re)?|li|d(?>[tdl]|iv)|t(?>[dr]|h(?>ead)?|able|body|foot)|h[1-6r]|ul|ol)(?>\s[^>]*)?>).)+)}  $source_text =~ s{(<(?>p(?>re)?|li|d[td]|t[dh]|h[1-6])(?>\s[^>]*)?>)((?>(?!</?(?>p(?>re)?|li|d(?>[tdl]|iv)|t(?>[dr]|h(?>ead)?|able|body|foot)|h[1-6r]|ul|ol)(?>\s[^>]*)?>).)+)}
# Line 62  $source_text =~ s{(<(?>p(?>re)?|li|d[td] Line 63  $source_text =~ s{(<(?>p(?>re)?|li|d[td]
63          $text =~ s/^\s+//;          $text =~ s/^\s+//;
64          $text =~ s/\s+\z//;          $text =~ s/\s+\z//;
65          $text =~ s/\x0D?\x0A(?:\x0D?\x0A)+/\n/g;          $text =~ s/\x0D?\x0A(?:\x0D?\x0A)+/\n/g;
66          print $tbt_file $text;          unless ($tbt_added->{$text}) {
67          print $tbt_file "\n\n";            print $tbt_file $text;
68              print $tbt_file "\n\n";
69              $tbt_added->{$text} = 1;
70            }
71        }        }
72    
73        $v;        $v;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24