Mercurial > hgbook
changeset 151:173e6eac4d5c
Fix "ul" and "dl" lists in HTML.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 08 Mar 2007 23:35:23 -0800 |
parents | 8cf40d4d9377 |
children | 44f233544e9e |
files | en/bookhtml.cfg |
diffstat | 1 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/en/bookhtml.cfg Thu Mar 08 23:11:55 2007 -0800 +++ b/en/bookhtml.cfg Thu Mar 08 23:35:23 2007 -0800 @@ -2,12 +2,16 @@ \Preamble{xhtml} -\ConfigureList{itemize}% - {\EndP\HCode{<dl>}\let\endItem=\empty} - {\ifvmode \IgnorePar\fi - \EndP\HCode{</dd></dl>}\ShowPar} - {\endItem \def\endItem{\EndP\Tg</dd>}\HCode{<dt>}} - {\HCode{</dt><dd>}} +% Tex4ht's default definition of lists is complete crap. +% Unfortunately, it can't distinguish between "ul" and "dl" lists. + +\ConfigureList{itemize}% + {\EndP\HCode{<ul>}\let\endItem=\empty} + {\ifvmode \IgnorePar\fi + \EndP\HCode{</li></ul>}\ShowPar} + {\endItem \def\endItem{\EndP\Tg</span>}\HCode{<li><span class="dt">}} + {\HCode{</span><span class="dd">}} +\def\textbullet{} \begin{document}