[tex4ht] Spurious and unclosed <p> tag before lstinline

Denis Bitouzé dbitouze at wanadoo.fr
Sat Oct 6 18:05:37 CEST 2012


Hello,

consider the following MCE:

\documentclass{article}
\usepackage{listings}
\begin{document}
foo \lstinline|bar|\par
\fbox{foo \lstinline|bar|}
\end{document}

that works as expected when compiled with pdflatex. By contrast,
htlatex compilation HTML output contains a spurious and unclosed <p> tag
before lstinline (formatted by myself to make it easier to read):

<p class="noindent" >
  foo 
  <span class="lstinline">
    bar
  </span>
  <div class="fbox">
    foo 
    <span class="lstinline">
      <!--l. 7-->
      <p class="noindent" >
	bar
    </span>
  </div>

Apart it is unclosed, this <p> tag may be not expected, as pointed by
the boxed example.

Any help, even as temporary workaround, is welcome :)

Thanks.
-- 
Denis


More information about the tex4ht mailing list