[Po4a-commits] r2568 - /trunk/lib/Locale/Po4a/Po.pm
barbier-guest at users.alioth.debian.org
barbier-guest at users.alioth.debian.org
Sun Sep 9 10:24:19 UTC 2012
Author: barbier-guest
Date: Sun Sep 9 10:24:18 2012
New Revision: 2568
URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2568
Log:
Fix a minor bug, an empty comment was added in POT file when porefs is 'none' and msgid is listed in several locations
Modified:
trunk/lib/Locale/Po4a/Po.pm
Modified: trunk/lib/Locale/Po4a/Po.pm
URL: http://svn.debian.org/wsvn/po4a/trunk/lib/Locale/Po4a/Po.pm?rev=2568&op=diff
==============================================================================
--- trunk/lib/Locale/Po4a/Po.pm (original)
+++ trunk/lib/Locale/Po4a/Po.pm Sun Sep 9 10:24:18 2012
@@ -1275,7 +1275,7 @@
if (defined $transref) {
$self->{po}{$msgid}{'transref'} = $transref;
}
- if (defined $reference) {
+ if (defined($reference) && length($reference)) {
if (defined $self->{po}{$msgid}{'reference'}) {
$self->{po}{$msgid}{'reference'} .= " ".$reference;
} else {
More information about the Po4a-commits
mailing list