Hello,
the new "split"-behaviour for DocBook-files in XXE 2.6 is a little bit
awkward when it comes to programlisting and literallayout elements.
With the way that docb.splitOrInsertNewLine is currently implemented, it
is not possible to insert a newline into a programlisting or
literallayout element, instead the element is split (which is probably
not what the user wants in this case).
I adapted this macro a bit to allow insertion of newlines into these
elements, maybe you could consider to include this in a future release?
I am also currently not sure if any other elements should be treated
like this.
Here's the changed macro:
<command name="docb.splitOrInsertNewLine">
<macro trace="false">
<choice>
<sequence>
<command name="selectNode"
parameter="ancestorOrSelf[implicitElement] programlisting
literallayout" />
<command name="insertControlChar" parameter="\n" />
</sequence>
<sequence>
<command name="selectNode"
parameter="ancestorOrSelf[implicitElement] simpara para" />
<command name="split" />
</sequence>
<command name="insertControlChar" parameter="\n" />
</choice>
</macro>
</command>
Thanks
Bernd
--
Bernd Kuemmerlen | fon: +49-421-218-7704
MeVis - Center for Medical Diagnostic Systems | fax: +49-421-218-4236
and Visualization | mailto:bkuemmer at mevis.de
Universitaetsallee 29, 28359 Bremen, Germany | http://www.mevis.de/