RE: [docbook] \r\n becomes 
 when generating XHTML (for ePub)

From
=?iso-8859-1?P?Coris_Rch=F4ling?=
Date
2010-01-21T23:38:19+00:00
ID
002c01ca9af2$ca1a12f0$5e4e38d0$@de
Thread
RE: [docbook] \r\n becomes 
 when generating XHTML (for ePub)
> -----Original Message-----
> From: Boris Sch鄟ing [mailto:]
> Sent: Tuesday, January 19, 2010 10:16 PM
> To: 
> Subject: [docbook] \r\n becomes when generating XHTML (for ePub)
> 
> I'm including Windows text files with \r\n end line markers. When I
> generate
> XHTML (for ePub) all lines end with a 
. When I generate HTML no
> 
> is inserted. I don't know if the output is different because the
> stylesheets
> are different or because the tools I use (xsltproc for HTML vs. the
> ePub
> converter which invokes xmllint).

As it turns out the problem is caused by the tools: "xsltproc --xinclude"
does not insert 
 when it sees \r\n while "xmllint --xinclude" does. I
don't know why there is a difference as they are both coming from the
libxml2 project. As I couldn't find a command line option which I could set
for xmllint to ignore the \r I probably have to use another trick. 

Boris