Subject: | Handling of indented msgstr |
Hi,
In Debian, we use this patch to avoid handling of indented msgstr :
diff --git a/PO.pm b/PO.pm
index f9ddd4b..c7d5247 100644
--- a/PO.pm
+++ b/PO.pm
@@ -426,10 +426,10 @@ sub _load_file {
$buffer{msgstr_n}{$1} = $self->dequote($2);
$last_buffer = \$buffer{msgstr_n}{$1};
}
- elsif (/^(?:#~\s+)?"/) {
+ elsif (/^(?:#~\s+)?\s*(".*)/) {
# contined string
- $$last_buffer .= $self->dequote($_);
+ $$last_buffer .= $self->dequote($1);
}
else {
warn "Strange line at $file line $line_number: $_\n";