summaryrefslogtreecommitdiff
path: root/perl/Locale/Po4a
diff options
context:
space:
mode:
Diffstat (limited to 'perl/Locale/Po4a')
-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
);
}
e='width: -nan%;'/> -rw-r--r--tags/73/b1/20160920080002.01B1A3744@lxp5.free-owl.de/unread0
-rw-r--r--tags/73/b1/20181012013007.1E69D20F@jawa.homebase.dk/hb0
-rw-r--r--tags/73/b1/20181012013007.1E69D20F@jawa.homebase.dk/sys0
-rw-r--r--tags/73/b1/20181012013007.1E69D20F@jawa.homebase.dk/unread0
-rw-r--r--tags/73/b1/20190417132116.18986-1-christian.gmeiner@gmail.com/unread0
-rw-r--r--tags/73/b1/20210203001740.420A25B6@jawa.homebase.dk/hb0
-rw-r--r--tags/73/b1/20210203001740.420A25B6@jawa.homebase.dk/sys0
-rw-r--r--tags/73/b1/20210203001740.420A25B6@jawa.homebase.dk/unread0
-rw-r--r--tags/73/b1/292EFC3A-BC4E-4A68-918C-C1F9EEA93770@gmail.com/sugar0
-rw-r--r--tags/73/b1/292EFC3A-BC4E-4A68-918C-C1F9EEA93770@gmail.com/unread0
-rw-r--r--tags/73/b1/3ED46F95.20406@siving.hia.no/skolelinux0
-rw-r--r--tags/73/b1/47B669A8-AB62-4943-BE0A-DB8BC217856A@gmail.com/freedom0
-rw-r--r--tags/73/b1/47B669A8-AB62-4943-BE0A-DB8BC217856A@gmail.com/unread0
-rw-r--r--tags/73/b1/5472DA78.9000308@hogyros.de/debian0
-rw-r--r--tags/73/b1/5472DA78.9000308@hogyros.de/signed0
-rw-r--r--tags/73/b1/5472DA78.9000308@hogyros.de/unread0
-rw-r--r--tags/73/b1/E1YrAgR-0007PZ-GH@TX100-S3P/debian0
-rw-r--r--tags/73/b1/E1jHKIc-000498-6u@respighi.debian.org/debian0
-rw-r--r--tags/73/b1/E1jHKIc-000498-6u@respighi.debian.org/inbox0
-rw-r--r--tags/73/b1/E1jHKIc-000498-6u@respighi.debian.org/killed0
-rw-r--r--tags/73/b1/E1jHKIc-000498-6u@respighi.debian.org/unread0
-rw-r--r--tags/73/b1/E1o5VD6-0004sw-Ez@fasolo.debian.org/debian0
-rw-r--r--tags/73/b1/E1o5VD6-0004sw-Ez@fasolo.debian.org/inbox0
-rw-r--r--tags/73/b1/E1o5VD6-0004sw-Ez@fasolo.debian.org/killed0
-rw-r--r--tags/73/b1/E1o5VD6-0004sw-Ez@fasolo.debian.org/unread0
-rw-r--r--tags/73/b1/IRFW9gF25UPkWoen3JQQu-4D_iJWsoe3gg2LcTk2XoUMLC9_KqoXiZmhuCcGP9GdKRppd6YcOZccQoQMYxlxZiMidT_pEijDHNniXloxpgs=@protonmail.com/replied0
-rw-r--r--tags/73/b1/IRFW9gF25UPkWoen3JQQu-4D_iJWsoe3gg2LcTk2XoUMLC9_KqoXiZmhuCcGP9GdKRppd6YcOZccQoQMYxlxZiMidT_pEijDHNniXloxpgs=@protonmail.com/unread0
38 files changed, 0 insertions, 0 deletions