Thomas K?bler wrote:
> we have a problem with one docbook document where we use for code the
> element programmlisting. when we produce a pdf file in german language, we
> get all the right linefeeds. when we change the language to english, we
> get all
> code without linefeeds. the same we see, when we look at the document
> opened in xmlmind. the german and english are different.

I'm sorry but I cannot reproduce the problem.

[1] I've created a DocBook book with several chapters, each one
containing a <programlisting> with several lines of indented code.

[2] If I add an attribute "lang" to the <book> root element and set this
attribute to "de", the generated PDF (I used FOP for that from within
XXE Professional Edition: DocBook|Convert|Convert to PDF [no TOC]) is
fine: the PDF block corresponding to the <programlisting> has all the
required linefeeds.

[3] If I change the "lang" attribute to "en" and regenerate the PDF, it
is fine too:  the PDF block corresponding to the <programlisting> has
all the required linefeeds.

My questions are then:

* Are you talking about two *different* DocBook documents one in German
and the other in English?

* If you are talking about the same document, how, in practice, do you
``change the language'' to English?


Reply via email to