[Po4a-commits] "po4a/lib/Locale/Po4a Xml.pm,1.60,1.61"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Thu Feb 14 18:01:24 UTC 2008


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv11889/lib/Locale/Po4a

Modified Files:
	Xml.pm 
Log Message:
Do not strip non-rewrapped paragraphs.


Index: Xml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Xml.pm,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- Xml.pm	14 Feb 2008 17:59:46 -0000	1.60
+++ Xml.pm	14 Feb 2008 18:01:21 -0000	1.61
@@ -1314,8 +1314,9 @@
 	}
 
 	# This strips the extracted strings
-	# (only if you don't specify the 'nostrip' option)
-	if (!$self->{options}{'nostrip'}) {
+	# (only if you don't specify the 'nostrip' option, and if the
+	# paragraph can be re-wrapped)
+	if (!$self->{options}{'nostrip'} and $translate !~ m/W/) {
 		my $clean = 0;
 		# Clean the beginning
 		while (!$clean and $#paragraph > 0) {




More information about the Po4a-commits mailing list