Commits

Bryan O'Sullivan committed 173e6ea

Fix "ul" and "dl" lists in HTML.

Comments (0)

Files changed (1)

 
 \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}