summaryrefslogtreecommitdiff
path: root/perl/Locale/Po4a/Text.pm
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-18 16:03:43 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-18 16:03:43 +0200
commit94c5df026a8f9e2b906ed0232519402361ba4992 (patch)
tree003eb36e1021972e10217157d1dbc9dd92c04072 /perl/Locale/Po4a/Text.pm
parent89b9f1fbfe4fbb2c63a59bee81286eee853842b7 (diff)
parentafd1ef47436f26c589d5b3bdb42a920013b43ecd (diff)
Merge branch '_da' into dada
Diffstat (limited to 'perl/Locale/Po4a/Text.pm')
-rw-r--r--perl/Locale/Po4a/Text.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl/Locale/Po4a/Text.pm b/perl/Locale/Po4a/Text.pm
index 676363d..bbb78af 100644
--- a/perl/Locale/Po4a/Text.pm
+++ b/perl/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) {
@@ -651,6 +651,7 @@ sub parse {
or $paragraph =~ /^\$(\S+[{}]\S*\s*)+/ms # Xapian macro
or $paragraph =~ /<(?![a-z]+[:@])/ms # maybe html (tags but not wiki <URI>)
or $paragraph =~ /^[^<]+>/ms # maybe html (tag with vertical space)
+ or $paragraph =~ /\S $/ms # explicit newline
or $paragraph =~ /\[\[\!\S[^\]]+$/ms # macro begin
);
}
/notmuch/diff/tags/ea/fd/20150725223226.Horde.IGj54ADyOhe_aesL9fFQpQ3@mail.das-netzwerkteam.de/inbox?h=master'>tags/ea/fd/20150725223226.Horde.IGj54ADyOhe_aesL9fFQpQ3@mail.das-netzwerkteam.de/inbox0
-rw-r--r--tags/ea/fd/20150725223226.Horde.IGj54ADyOhe_aesL9fFQpQ3@mail.das-netzwerkteam.de/old0
-rw-r--r--tags/ea/fd/20150725223226.Horde.IGj54ADyOhe_aesL9fFQpQ3@mail.das-netzwerkteam.de/signed0
-rw-r--r--tags/ea/fd/20170121040001.BD687906@lxp5.free-owl.de/sys0
-rw-r--r--tags/ea/fd/20170121040001.BD687906@lxp5.free-owl.de/unread0
-rw-r--r--tags/ea/fd/20170221145534.A8713C0CF5@marvin.dmesg.gr/debian0
-rw-r--r--tags/ea/fd/3b239831-bec1-4646-562b-0a2e1acf4ba3@debian.org/debian0
-rw-r--r--tags/ea/fd/3b239831-bec1-4646-562b-0a2e1acf4ba3@debian.org/unread0
-rw-r--r--tags/ea/fd/4029167.fDKCcbllzN@murphy/debconf0
-rw-r--r--tags/ea/fd/4029167.fDKCcbllzN@murphy/debian0
-rw-r--r--tags/ea/fd/4029167.fDKCcbllzN@murphy/unread0
-rw-r--r--tags/ea/fd/70FE5349-DBA3-4133-AD2F-530C6862D8C6@onenetbeyond.org/debian0
-rw-r--r--tags/ea/fd/70FE5349-DBA3-4133-AD2F-530C6862D8C6@onenetbeyond.org/unread0
-rw-r--r--tags/ea/fd/87r8qgejzu.fsf@jumper.lonesom.pp.fi/debian0
-rw-r--r--tags/ea/fd/87r8qgejzu.fsf@jumper.lonesom.pp.fi/inbox0
-rw-r--r--tags/ea/fd/87r8qgejzu.fsf@jumper.lonesom.pp.fi/old0
-rw-r--r--tags/ea/fd/BFCCD5A1-F84B-482D-8146-26B08205850D@ugent.be/signed0
-rw-r--r--tags/ea/fd/BFCCD5A1-F84B-482D-8146-26B08205850D@ugent.be/unread0
-rw-r--r--tags/ea/fd/CA+f80t5ttAU9weDZ=NxwuRN7WmMnKfLqfw8r+==iRCkwn=-+eQ@mail.gmail.com/debian0
-rw-r--r--tags/ea/fd/CA+f80t5ttAU9weDZ=NxwuRN7WmMnKfLqfw8r+==iRCkwn=-+eQ@mail.gmail.com/unread0
-rw-r--r--tags/ea/fd/E1Udh7F-0004Ck-8e@epfsug.eu/debian0
-rw-r--r--tags/ea/fd/E1Udh7F-0004Ck-8e@epfsug.eu/epfsug0
-rw-r--r--tags/ea/fd/E1Udh7F-0004Ck-8e@epfsug.eu/sys0
-rw-r--r--tags/ea/fd/E1oFuFq-0071TV-CT@usper.debian.org/debian0
-rw-r--r--tags/ea/fd/E1oFuFq-0071TV-CT@usper.debian.org/inbox0
-rw-r--r--tags/ea/fd/E1oFuFq-0071TV-CT@usper.debian.org/killed0
-rw-r--r--tags/ea/fd/E1oFuFq-0071TV-CT@usper.debian.org/unread0
-rw-r--r--tags/ea/fd/PyAV-Org%2fPyAV%2fissues%2f817%2f1261293131@github.com/unread0
-rw-r--r--tags/ea/fd/b3a949fdd928742b9a461bdc9310ceda@sms-backup-plus.local/inbox0
-rw-r--r--tags/ea/fd/b3a949fdd928742b9a461bdc9310ceda@sms-backup-plus.local/old0
45 files changed, 0 insertions, 0 deletions