[tex4ht-commits] [SCM] tex4ht updated: r694 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Fri May 22 15:42:43 CEST 2020
Author: michal_h21
Date: 2020-05-22 16:42:43 +0300 (Fri, 22 May 2020)
New Revision: 694
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
use <pre> element for the verbatim environment
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-05-22 12:42:56 UTC (rev 693)
+++ trunk/lit/ChangeLog 2020-05-22 13:42:43 UTC (rev 694)
@@ -2,6 +2,8 @@
* tex4ht-4ht.tex (usepackage.4ht, caption.4ht): fixes for the Caption package.
https://tex.stackexchange.com/q/545582/2891
+ * tex4ht-html4.tex (html4.4ht): use <pre> element for the verbatim
+ environment.
2020-05-20 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2020-05-22 12:42:56 UTC (rev 693)
+++ trunk/lit/tex4ht-html4.tex 2020-05-22 13:42:43 UTC (rev 694)
@@ -7249,12 +7249,11 @@
\def\env:verb#1{\ifinner\else \vfill\break\fi
\IgnorePar\EndP \HAssign\Verb:N=0
\gHAdvance\verbatimN by 1
- \HCode{<div class="#1" id="verbatim-\verbatimN"\a:LRdir>}\EndNoFonts}
+ \HCode{<pre class="#1" id="verbatim-\verbatimN"\a:LRdir>}\EndNoFonts}
\def\endenv:verb{\NoFonts
- \EndP \ht:special{t4ht=</div>}|<try inline par|>}
+ \EndP \ht:special{t4ht=</pre>}|<try inline par|>}
\HAssign\Verb:N=0
-\Css{div.verbatim {font-family: monospace,monospace;
- white-space: nowrap;
+\Css{pre.verbatim {font-family: monospace,monospace;
text-align:left;
clear:both;
}}
@@ -7266,7 +7265,7 @@
\<configure html4 latex\><<<
\Configure{verbatim}
- {\HAdvance\Verb:N by 1 \ifnum \Verb:N>1 \:nbsp \HCode{<br />}\fi}
+ {\HAdvance\Verb:N by 1 \ifnum \Verb:N>1\fi}
{\a:sp}
\Configure{verb}
{\HCode{<span class="verb"\a:LRdir>}}
More information about the tex4ht-commits
mailing list.