[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem in PDF output
Hi Greg,
I noticed that there's a problem with the PDF (from DocBook) HOWTOs:
1. DocBook requires a <para> or something after a <listitem> tag.
2. Jade retains <para> (as <P>, naturally) in the HTML version.
3. HTMLDoc breaks the line before the <P> tag.
The resulting list looks like:
*
First item.
*
Second item.
*
Third item.
Check 'Copyrights and Trademarks' in the HOWTO-HOWTO to see what I'm
talking about.
A possible solution is to delete the unnecessary <P> and </P> tags from
the single page HTML file, like:
sed -e '/<LI$/{N;s/<LI\n><P/<LI/;}' HOWTO.html | sed -e
'/<\/P$/{N;s/<\/P\n><\/LI/<\/LI/;}' > NEWHOWTO.html
That is:
1. If a line ends with <LI and the next line begins with ><P -> delete ><P
2. If a line ends with </P and the next line begins with </LI -> delete </P
It seems to work.
Others may come up with a better solution, perhaps even with a
better-looking one...
Cheers,
Pal
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]