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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Dec 12 17:18:55 CET 2023


Author: michal_h21
Date: 2023-12-12 16:18:54 +0000 (Tue, 12 Dec 2023)
New Revision: 1421

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
removed spurious blanklines from \VerbatimInput

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-12-12 15:53:16 UTC (rev 1420)
+++ trunk/lit/ChangeLog	2023-12-12 16:18:54 UTC (rev 1421)
@@ -1,5 +1,9 @@
 2023-12-12  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-html4.tex (html4.4ht): removed spurious blank lines in
+	files included using \VerbatimInput from the fancyvrb package.
+	https://puszcza.gnu.org.ua/bugs/?617
+
 	* tex4ht-4ht.tex (marginnote.4ht),
 	* tex4ht-html4.tex (html4.4ht): added support for the \marginnote
 	command.

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2023-12-12 15:53:16 UTC (rev 1420)
+++ trunk/lit/tex4ht-html4.tex	2023-12-12 16:18:54 UTC (rev 1421)
@@ -15269,6 +15269,9 @@
 \subsection{fancyvrb}
 %%%%%%%%%%%%%%%%%%%
 
+We need to use special instructions to prevent extra blank lines that
+are comming from fancyvrb somehow. "x" before closing tag for "pre"
+is necessary because the last newline was not deleted otherwise.
 
 \<configure html4 fancyvrb\><<<
 \HAssign\fancyvrbNo|=0
@@ -15275,12 +15278,12 @@
 \Configure{fancyvrb}
    {\IgnorePar \EndP \gHAdvance\fancyvrbNo by 1
     \gHAssign\fancyvrb:cnt0
-    \HCode{<pre class="fancyvrb" id="fancyvrb\fancyvrbNo">}}
-   {\EndP\HCode{</pre>}}
-   {\gHAdvance\fancyvrb:cnt by 1
+    \HCode{<pre class="fancyvrb" id="fancyvrb\fancyvrbNo">}\ht:special{t4ht@[}}
+    {x\ht:special{t4ht@]}\EndP\HCode{</pre>}}
+    {\ht:special{t4ht@]}\gHAdvance\fancyvrb:cnt by 1
     \ifnum \fancyvrb:cnt>1 
     \HCode{\Hnewline}\fi} {}
-   {}{}
+   {}{\ht:special{t4ht@[}}
 \Css{pre.fancyvrb {white-space: pre-wrap; margin:0em;font-family:monospace,monospace;}}
 >>>
 



More information about the tex4ht-commits mailing list.