On Tue, 08 Aug 2017 23:55:26 +0200, Martin Quinson wrote: > Thanks for investigating this bug.
Thanks for looking into this issue. > > The error is in /usr/share/perl5/Locale/Po4a/TransTractor.pm:643 > > which is > > my $found = scalar grep { /$position/ } @{$self->{TT}{doc_out}}; > > and $position (comes from addendum_parse() in the same file and) > > contains '\\end{document}' at that point. > > > > And this '\\end{document}' itself comes from files in the > > packaging-tutorial po4a directory. > > > > So I don't know if po4a needs a generic fix, or packaging-tutorial > > needs to change how it uses it. > > I would be unable to generate a patch for the first option. My perl is > rather rotten nowadays. I also think it would be difficult; all tha po4a sees at this point is a string, and it's probably impossible to preprocess it into a regexp. What po4a could maybe do is to mention in the documentation that the string in "position=something" in addendums will be interpreted as a Perl regexp later. > I think that the second option is sensible: > packaging-tutorial is providing some code that is interpreted by po4a, > so it should ensure that it provides correct code. I tend to agree. (And it aleady escapes the backslash.) Lucas, what do you think? Cheers, gregor -- .''`. https://info.comodo.priv.at/ - Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `-
signature.asc
Description: Digital Signature