diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-html4.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-html4.tex | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index 0108f2d289..5dfb67b428 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 978 2021-09-12 21:26:18Z michal_h21 $ +% $Id: tex4ht-html4.tex 982 2021-09-17 12:20:37Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -15254,15 +15254,17 @@ Configuration for the inline code \gdef\start:LstLn{% \HCode{<div class="lstlisting" id="listing-\listingN">}% \gdef\start:LstLn{|<nbsp|>\HCode{<br />\Hnewline}}} - \bgroup + \bgroup% + % we put the closing </div> here in order to support floating listings + % https://tex.stackexchange.com/a/615703/2891 + \pend:def\lst@DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}% \Configure{listings} {{\everypar{}\leavevmode}} {{\everypar{}\leavevmode}} {\start:LstLn \HCode{<span class="label">}} {\HCode{</span>}}% } - {\egroup - \ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par} + {\egroup\par} {} {} \Css{.lstlisting .label{margin-right:0.5em; }} \Css{div.lstlisting{font-family: monospace,monospace; white-space: nowrap; |