[tex4ht-commits] [SCM] tex4ht updated: r800 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Mon Sep 28 18:41:12 CEST 2020


Author: michal_h21
Date: 2020-09-28 19:41:12 +0300 (Mon, 28 Sep 2020)
New Revision: 800

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
use <pre> element for fancy verbatim

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-09-22 13:29:54 UTC (rev 799)
+++ trunk/lit/ChangeLog	2020-09-28 16:41:12 UTC (rev 800)
@@ -1,3 +1,8 @@
+2020-09-28  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): use <pre> element for fancy verbatim.
+	https://tex.stackexchange.com/q/564532/2891
+
 2020-09-22  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht (latex.4ht, subscript.4ht): patch \@textsuperscript and

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2020-09-22 13:29:54 UTC (rev 799)
+++ trunk/lit/tex4ht-html4.tex	2020-09-28 16:41:12 UTC (rev 800)
@@ -15040,13 +15040,13 @@
 \Configure{fancyvrb}
    {\IgnorePar \EndP \gHAdvance\fancyvrbNo by 1
     \gHAssign\fancyvrb:cnt0
-    \HCode{<div class="fancyvrb" id="fancyvrb\fancyvrbNo">}}
-   {\EndP\HCode{</div>}}
+    \HCode{<pre class="fancyvrb" id="fancyvrb\fancyvrbNo">}}
+   {\EndP\HCode{</pre>}}
    {\gHAdvance\fancyvrb:cnt by 1
     \ifnum \fancyvrb:cnt>1 
-    \HCode{<br class="fancyvrb" />\Hnewline}\fi} {}
+    \HCode{\Hnewline}\fi} {}
    {}{}
-\Css{div.fancyvrb {white-space: nowrap; margin:0em;font-family:monospace,monospace;}}
+\Css{pre.fancyvrb {white-space: pre-wrap; margin:0em;font-family:monospace,monospace;}}
 >>>
 
 
@@ -15065,19 +15065,19 @@
 
 \<configure html4 fancyvrb\><<<
 \Configure{fancyvrbcolor}
-  {\Css{div\#fancyvrb\fancyvrbNo { color: \HColor; }}}
-  {\Css{div\#fancyvrb\fancyvrbNo { background-color: \HColor;}}}
-  {\Css{div\#fancyvrb\fancyvrbNo { border-color: \HColor;}}}
+  {\Css{pre\#fancyvrb\fancyvrbNo { color: \HColor; }}}
+  {\Css{pre\#fancyvrb\fancyvrbNo { background-color: \HColor;}}}
+  {\Css{pre\#fancyvrb\fancyvrbNo { border-color: \HColor;}}}
 >>>
 
 \<configure html4 fancyvrb\><<<
 \Configure{fancyvrbframe}
-   {\Css{div\#fancyvrb\fancyvrbNo { border-top: solid \HSize; }}}
-   {\Css{div\#fancyvrb\fancyvrbNo { border-left: solid \HSize; }}}
-   {\Css{div\#fancyvrb\fancyvrbNo { border-bottom: solid \HSize; }}}
-   {\Css{div\#fancyvrb\fancyvrbNo { border-right: solid \HSize; }}}
-   {\Css{div\#fancyvrb\fancyvrbNo {border-width:\HSize;}}}
-   {\Css{div\#fancyvrb\fancyvrbNo {padding:\HSize;}}}
+   {\Css{pre\#fancyvrb\fancyvrbNo { border-top: solid \HSize; }}}
+   {\Css{pre\#fancyvrb\fancyvrbNo { border-left: solid \HSize; }}}
+   {\Css{pre\#fancyvrb\fancyvrbNo { border-bottom: solid \HSize; }}}
+   {\Css{pre\#fancyvrb\fancyvrbNo { border-right: solid \HSize; }}}
+   {\Css{pre\#fancyvrb\fancyvrbNo {border-width:\HSize;}}}
+   {\Css{pre\#fancyvrb\fancyvrbNo {padding:\HSize;}}}
 >>>
 
 \<configure html4 fancyvrb\><<<



More information about the tex4ht-commits mailing list.