[Po4a-commits] "po4a/lib/Locale/Po4a Dia.pm,1.17,1.18"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sat Feb 28 21:34:04 UTC 2009


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

Modified Files:
	Dia.pm 
Log Message:
	* lib/Locale/Po4a/Dia.pm: Since the removal of tagsonly,
	found_string() may receive an empty (or space only) string. Just
	return the provided string in that case.


Index: Dia.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Dia.pm,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- Dia.pm	22 Feb 2009 10:20:31 -0000	1.17
+++ Dia.pm	28 Feb 2009 21:34:02 -0000	1.18
@@ -98,6 +98,7 @@
 
 sub found_string {
 	my ($self,$text,$ref,$options)=@_;
+	return $text if $text =~ m/^\s*$/s;
 
 	#We skip the paper type string
 	if ( $self->get_path() !~ /<dia:diagramdata>/ ) {




More information about the Po4a-commits mailing list