From be81025f42d9175472caf94418caebb3870a71dc Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 18 Oct 2010 16:00:31 +0200 Subject: Sync with po4a 0.40.1. --- perl/Locale/Po4a/Text.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perl/Locale/Po4a/Text.pm b/perl/Locale/Po4a/Text.pm index 676363d..8f703c8 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) { -- cgit v1.2.3 From 64ee3431f5519f1eb36bd6c62acfb386c2769c8a Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 18 Oct 2010 16:03:33 +0200 Subject: Fix preserve forced newline in po4a Text module. --- perl/Locale/Po4a/Text.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl/Locale/Po4a/Text.pm b/perl/Locale/Po4a/Text.pm index 8f703c8..bbb78af 100644 --- a/perl/Locale/Po4a/Text.pm +++ b/perl/Locale/Po4a/Text.pm @@ -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 ) or $paragraph =~ /^[^<]+>/ms # maybe html (tag with vertical space) + or $paragraph =~ /\S $/ms # explicit newline or $paragraph =~ /\[\[\!\S[^\]]+$/ms # macro begin ); } -- cgit v1.2.3 n>
diff options
context:
space:
mode:
Diffstat (limited to 'tags/d5/a0/E1oqAvz-001vyV-Mv@usper.debian.org/killed')
dr@jones.dk>
2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/6c/b6/000b01be866c%2481a95220%24b0a74382@tverlis/old
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
Diffstat (limited to 'tags/6c/b6/000b01be866c%2481a95220%24b0a74382@tverlis/old')