> From: Bruce Dubbs <[email protected]>
> Date: Sun, 23 Apr 2017 13:38:46 -0500
>
> akhiezer wrote:
> >> 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.
>
> There are 1300 xml files in BLFS.  We are not going to do that.


The number of files doesn't matter as it is _scripted_ - automated,
as indicated: it obviously would not be done manually.


And getting the current xml into the indicated format, is also - of
course - scripted; and a once-off; and it lets the patches be much
easier, as described.



akh





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

Reply via email to