[tex4ht-commits] [SCM] tex4ht updated: r1078 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Wed Feb 16 16:02:58 CET 2022
Author: michal_h21
Date: 2022-02-16 15:02:58 +0000 (Wed, 16 Feb 2022)
New Revision: 1078
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
use <pre> for listings
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-02-16 09:56:58 UTC (rev 1077)
+++ trunk/lit/ChangeLog 2022-02-16 15:02:58 UTC (rev 1078)
@@ -2,6 +2,7 @@
* tex4ht-4ht.tex (listings.4ht): load Xcolor with Listings to
prevent compilation errors with the syntax color detection.
+ * tex4ht-html4.tex (html4.4ht): use <pre> for Listings.
2022-02-10 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2022-02-16 09:56:58 UTC (rev 1077)
+++ trunk/lit/tex4ht-html4.tex 2022-02-16 15:02:58 UTC (rev 1078)
@@ -15269,12 +15269,12 @@
\gHAdvance\listingN by 1
\HCode{<!--l. \the\inputlineno-->}%
\gdef\start:LstLn{%
- \HCode{<div class="lstlisting" id="listing-\listingN">}%
+ \HCode{<pre class="lstlisting" id="listing-\listingN">}%
\gdef\start:LstLn{|<nbsp|>\HCode{<br />\Hnewline}}}
\bgroup%
% we put the closing </div> here in order to support floating listings
% https://tex.stackexchange.com/a/615703/2891
- \pend:def\lst at DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}%
+ \pend:def\lst at DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{</pre>}}%
\Configure{listings}
{{\everypar{}\leavevmode}}
{{\everypar{}\leavevmode}}
@@ -15284,7 +15284,7 @@
{\egroup\par}
{} {}
\Css{.lstlisting .label{margin-right:0.5em; }}
-\Css{div.lstlisting{font-family: monospace,monospace; white-space: nowrap;
+\Css{pre.lstlisting{font-family: monospace,monospace; white-space: nowrap;
margin-top:0.5em; margin-bottom:0.5em;
}}
>>>
@@ -15293,7 +15293,7 @@
\Configure{lstinputlisting}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<!--l. \the\inputlineno-->}%
- \HCode{<div class="lstinputlisting">}%
+ \HCode{<pre class="lstinputlisting">}%
\bgroup \tt %\special{t4ht@(}%
\Configure{listings}
{{\everypar{}\leavevmode}}
@@ -15304,8 +15304,8 @@
}
{%\special{t4ht@)}
\egroup
- \ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}
-\Css{div.lstinputlisting{
+ \ifvmode \IgnorePar\fi \EndP \HCode{</pre>}\par}
+\Css{pre.lstinputlisting{
font-family: monospace,monospace;
white-space: nowrap;
}}
More information about the tex4ht-commits
mailing list.