On 2012/6/26 Jérémy Lal wrote: > Package: po4a > Version: 0.42-1 > Severity: minor > > $ po4a-gettextize -f xhtml -M UTF-8 -m "xxx.html" -m "yyy.html" ... -p > test.po > ouputs : > #. type: Attribute 'lang' of: <html><body> > #: site/html_fr/actualites.html:19 site/html_fr/contacts.html:19 > site/html_fr/courriel.html:18 site/html_fr/courriel-ok.html:18 > msgid "fr" > msgstr "" > > Then i change something in one.html and want to update test.po : > po4a-updatepo -f xhtml -M UTF-8 -m "xxx.html" -m "yyy.html" ... -p test.po > outputs : > #. type: Attribute 'lang' of: <html><body> > #: site/html_fr/actualites.html:19 site/html_fr/contacts.html:19 > #: site/html_fr/courriel.html:18 site/html_fr/courriel-ok.html:18 > msgid "fr" > msgstr "" > > I guess the later format is cleaner, but it would be nicer if they > were the same.
Hello, Thanks for your report. Po4a-gettextize is run only once, this discrepancy thus appears only the first time po4a-updatepo is run, this is why nobody cares. Anyway, if there is a simple solution, we could apply it. Can you please tell me whether the following patch does address your concern? --- /usr/share/perl5/Locale/Po4a/Po.pm +++ /usr/share/perl5/Locale/Po4a/Po.pm @@ -429,7 +429,7 @@ sub write{ $output .= format_comment($self->{po}{$msgid}{'type'},". type: ") if defined($self->{po}{$msgid}{'type'}) && length ($self->{po}{$msgid}{'type'}); - $output .= format_comment($self->{po}{$msgid}{'reference'},": ") + $output .= format_comment(wrap($self->{po}{$msgid}{'reference'}),": ") if defined($self->{po}{$msgid}{'reference'}) && length ($self->{po}{$msgid}{'reference'}); $output .= "#, ". join(", ", sort split(/\s+/,$self->{po}{$msgid}{'flags'}))."\n" Denis -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org