[Po4a-commits] "po4a/lib/Locale/Po4a Xml.pm,1.39,1.40"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Tue Mar 28 11:10:43 UTC 2006


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv7439/lib/Locale/Po4a

Modified Files:
	Xml.pm 
Log Message:
Fix a typo (did not compile; remove a 'my')
Remove <quote> from the list of placeholder tags. The robustness was
tested on the debian-installer: after a po4a-normalization, the .txt and
.html outputs of the d-i manual were equivalent.


Index: Xml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Xml.pm,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- Xml.pm	27 Mar 2006 22:20:57 -0000	1.39
+++ Xml.pm	28 Mar 2006 11:10:41 -0000	1.40
@@ -940,7 +940,7 @@
 			if ($tag_types[$type]->{'end'} eq "") {
 				if ($tag_types[$type]->{'beginning'} eq "") {
 					# Opening inline tag
-					if ($self->get_tag_name(@tag) =~ m/(footnote|quote)/) { # FIXME
+					if ($self->get_tag_name(@tag) =~ m/(footnote)/) { # FIXME
 						# We enter a new holder.
 						# Append a <placeholder#> tag to the current
 						# paragraph, and save the @paragraph in the
@@ -958,7 +958,7 @@
 
 						# Then we must push a new holder
 						my @new_paragraph = ();
-						my @sub_translations = ();
+						@sub_translations = ();
 						my %new_holder = ('paragraph' => \@new_paragraph,
 						                  'translation' => "",
 						                  'sub_translations' => \@sub_translations);
@@ -981,7 +981,7 @@
 						die wrap_ref_mod($tag[1], "po4a::xml", dgettext("po4a", "Unexpected closing tag </%s> found. The main document may be wrong."), $tag[0]);
 					}
 
-					if ($self->get_tag_name(@tag) =~ m/(footnote|quote)/) {
+					if ($self->get_tag_name(@tag) =~ m/(footnote)/) {
 						# This closes the current holder.
 
 						# We keep the closing tag in the holder paragraph.




More information about the Po4a-commits mailing list