Changeset 33791 for lang/perl/Pod-L10N/trunk
- Timestamp:
- 06/05/09 01:28:43 (4 years ago)
- Location:
- lang/perl/Pod-L10N/trunk
- Files:
-
- 2 added
- 5 modified
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (2 diffs)
-
lib/Pod/L10N/Html.pm (modified) (3 diffs)
-
t/11_substitute.t (modified) (2 diffs)
-
t/12_minimal.t (added)
-
t/minimal.pod (added)
-
t/substitute.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Pod-L10N/trunk/Changes
r33769 r33791 1 1 Revision history for Perl extension Pod::L10N. 2 3 0.03_02 Thu Jun 5 00:57:10 JST 2009 4 5 - eliminate some warnings 2 6 3 7 0.03_01 Thu Jun 4 00:23:12 JST 2009 -
lang/perl/Pod-L10N/trunk/MANIFEST
r33769 r33791 8 8 t/00_compile.t 9 9 t/11_substitute.t 10 t/12_minimal.t 10 11 t/99_pod.t 11 12 t/01_core.t … … 35 36 t/htmlview.html 36 37 t/htmlview.pod 38 t/minimal.pod 37 39 t/noheadi.html 38 40 t/noheads.html -
lang/perl/Pod-L10N/trunk/lib/Pod/L10N/Html.pm
r33769 r33791 4 4 5 5 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); 6 $VERSION = '0.03_0 1';6 $VERSION = '0.03_02'; 7 7 @ISA = qw(Exporter); 8 8 @EXPORT = qw(pod2html htmlify); … … 225 225 for (my $i = 0; $i < @poddata; $i++) { 226 226 if ($poddata[$i] =~ /^=head1\s*NAME\b/m) { 227 for my $para ( @poddata[$i+4, $i+1] ) { 228 last TITLE_SEARCH 229 if ($Title) = $para =~ /(\S+\s+-+.*\S)/s; 227 my $para; 228 # detect L10N-ed NAME 229 if($poddata[$i + 1] =~ /=begin original/){ 230 $para = $poddata[$i + 4]; 231 } else { 232 $para = $poddata[$i + 1]; 230 233 } 234 last TITLE_SEARCH 235 if ($Title) = $para =~ /(\S+\s+-+.*\S)/s; 231 236 } 232 237 … … 264 269 } 265 270 266 for (my $i = 0; $i < @poddata; $i++) { 267 if ($poddata[$i] =~ /^=encoding\s*([-_\w]*)/m) { 271 # detect =encoding 272 for (@poddata) { 273 if (/^=encoding\s*([-_\w]*)/m) { 268 274 $Encoding = $1; 269 275 last; -
lang/perl/Pod-L10N/trunk/t/11_substitute.t
r33766 r33791 1 #use Test::More skip_all => 'for some reason, this test fail on some platform';2 1 use Test::More tests => 1; 3 2 … … 21 20 my $CACHEDIR = "$CWD/subdir"; 22 21 23 TODO: { 24 local $TODO = 'may error on some platform'; 25 26 convert_ok("substitute.pod", "substitute.html", "l10n substitution"); 27 } 22 # l10n conversion 23 convert_ok("substitute.pod", "substitute.html", "l10n substitution"); 28 24 29 25 sub slurp { -
lang/perl/Pod-L10N/trunk/t/substitute.html
r33766 r33791 5 5 <title>title</title> 6 6 <meta http-equiv="content-type" content="text/html; charset=euc-jp" /> 7 <link rev="made" href=" [PERLADMIN]" />7 <link rev="made" href="mailto:[PERLADMIN]" /> 8 8 </head> 9 9
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)