> From: Bruce Dubbs <[email protected]>
> Date: Sun, 23 Apr 2017 12:47:40 -0500
>
[...]
> >
> > If the original xml were formatted thus:
> > ====
> > <screen><userinput>
> > echo "/opt/llvm3/lib" >> /etc/ld.so.conf &amp;&amp;
> > mkdir -v build                           &amp;&amp;
> > cd       build                           &amp;&amp;
>
> That creates unwanted blank lines on the page.  We do what we can to keep 
> things readable, but we are constrained by the docbook syntax (and that is 


It'd be simple to pre-process the xml, to unwrap the code-related
open/close tags as reqd, prior to feeding it into docbook.


E.g. roughly:

$
#
# todo: perh use sed script instead of tr()s, if hit buffering problems.
#
cat $xmlfile |
 tr '\n' $'\x80' |
 sed -rue 's/(<screen><userinput>)([[:blank:]]*\x80/\1/g' |
 tr '\x80' '\n' |
 docbook_scr ... ;
$

And similarly for the relevant code-related closing tags, if that'd
be reqd.



akh





--
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to