[Po4a-devel] XML, self-closing inline tags and \r escape sequences

Nicolas François nicolas.francois at centraliens.net
Tue Oct 31 14:35:28 CET 2006


Hello Yves,

On Sun, Oct 29, 2006 at 04:22:55PM +0100, Yves Rutschle wrote:
> 
> I have a problem with the XML parser (or my XHTML module,
> I'm not absolutely sure). If I have a document with e.g.:
> 
> <h1>This title is on <br />
> two lines</h1>
> 
> Then the msgid gets an embedded \r after the <br/> tag,
> which msgmerge complains about afterwards. I'm guessing
> something goes wrong with a tag that's both inline and
> self-closing.
> 
> Any ideas?

I cannot reproduce it. Can you send the file you use in input of po4a?
Maybe it contains DOS end of lines. In that case, try to convert it with
dos2unix.

Generally speaking, po4a is not robust to these end of lines and the
modules are only tested with unix end of lines.

Kind Regards,
-- 
Nekral



More information about the Po4a-devel mailing list