[tex4ht-commits] [SCM] tex4ht updated: r802 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sat Oct 3 00:14:00 CEST 2020
Author: michal_h21
Date: 2020-10-03 01:13:59 +0300 (Sat, 03 Oct 2020)
New Revision: 802
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
Fixed spurious lines in fancyvrb
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-09-28 20:10:14 UTC (rev 801)
+++ trunk/lit/ChangeLog 2020-10-02 22:13:59 UTC (rev 802)
@@ -1,3 +1,8 @@
+2020-10-03 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (fancyvrb.4ht): fixed spurious blank lines that were
+ sometimes produced.
+
2020-09-28 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-html4.tex (html4.4ht): use <pre> element for fancy verbatim.
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2020-09-28 20:10:14 UTC (rev 801)
+++ trunk/lit/tex4ht-4ht.tex 2020-10-02 22:13:59 UTC (rev 802)
@@ -23664,6 +23664,34 @@
\FV at LeftListFrame \e:fancyvrb \FancyVerbFormatLine{#1}\f:fancyvrb%
\FV at RightListFrame \csname FV at RightListNumber\endcsname %
\d:fancyvrb}}
+>>>
+
+These macros are original fancyvrb versions, we removed some penalty commands,
+as they resulted in unwanted blank lines.
+
+\<fix fancyvrb\><<<
+\def\FV at ListProcessLine@iii#1{%
+ \box\@tempboxa
+ \setbox\@tempboxa=\FV at ListProcessLine{#1}%
+ \let\FV at ProcessLine\FV at ListProcessLine@iv}
+\def\FV at ListProcessLine@iv#1{%
+ \box\@tempboxa
+ \setbox\@tempboxa=\FV at ListProcessLine{#1}}%
+\def\FV at ListProcessLastLine{%
+ \ifx\FV at ProcessLine\FV at ListProcessLine@iv
+ \box\@tempboxa
+ \else
+ \ifx\FV at ProcessLine\FV at ListProcessLine@iii
+ \box\@tempboxa
+ \else
+ \ifx\FV at ProcessLine\FV at ListProcessLine@i
+ \FV at Error{Empty verbatim environment}{}%
+ \FV at ProcessLine{}%
+ \fi
+ \fi
+ \fi}
+
+
\def\FV at EndList{\FV at ListProcessLastLine \FV at EndListFrame%
\IgnorePar\b:fancyvrb\par\@endparenv%
\endgroup \@endpetrue}
More information about the tex4ht-commits
mailing list.