summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-18 16:00:31 +0200
committerJonas Smedegaard <dr@jones.dk>2013-10-13 00:47:52 +0200
commit340e00505b1caa473a632a6501eba6a93cac04db (patch)
tree1c4373edb95bbf6717b795c3c9c04b9b771f9ea1
parent853edd3be5817357db2c3f313d3ea0e42cca6c9b (diff)
Sync with po4a 0.40.1.
-rw-r--r--Locale/Po4a/Text.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Locale/Po4a/Text.pm b/Locale/Po4a/Text.pm
index 676363d..8f703c8 100644
--- a/Locale/Po4a/Text.pm
+++ b/Locale/Po4a/Text.pm
@@ -25,11 +25,11 @@
=head1 NAME
-Locale::Po4a::Text - Convert text documents from/to PO files
+Locale::Po4a::Text - convert text documents from/to PO files
=head1 DESCRIPTION
-The po4a (po for anything) project goal is to ease translations (and more
+The po4a (PO for anything) project goal is to ease translations (and more
interestingly, the maintenance of translations) using gettext tools on
areas where they were not expected like documentation.
@@ -202,7 +202,7 @@ sub parse {
my $end_of_paragraph = 0;
($line,$ref)=$self->shiftline();
my $file = $ref;
- $file =~ s/:[0-9]+$//;
+ $file =~ s/:[0-9]+$// if defined($line);
while (defined($line)) {
$ref =~ m/^(.*):[0-9]+$/;
if ($1 ne $file) {