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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Sun Sep 14 21:35:02 CEST 2025


Author: michal_h21
Date: 2025-09-14 19:35:02 +0000 (Sun, 14 Sep 2025)
New Revision: 1741

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
fixed handling of the center environment inside wrapfigure

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2025-09-14 15:05:17 UTC (rev 1740)
+++ trunk/lit/ChangeLog	2025-09-14 19:35:02 UTC (rev 1741)
@@ -1,3 +1,9 @@
+2025-09-14  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): fixed handling of the center
+	environment inside wrapfigure.
+	https://tex.stackexchange.com/a/751081/2891
+
 2025-09-14  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-4ht.tex (tcolorbox.4ht): copyright 2025.

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2025-09-14 15:05:17 UTC (rev 1740)
+++ trunk/lit/tex4ht-html4.tex	2025-09-14 19:35:02 UTC (rev 1741)
@@ -6234,6 +6234,7 @@
        |<config span caption|>%
        \def\endWrap{\egroup\HCode{</span>}}%
      \fi
+    |<wrapfig config center|>%
     }
     {\endWrap}
 \Css{.caption span.id{font-weight: bold;}}
@@ -6279,7 +6280,16 @@
      {width:30\%; }}
 >>>
 
+We must disable paragraph breaks inside \texttt{wrapfig} environment.
+See \Link[https://tex.stackexchange.com/q/751052/2891]{}{}this bug report\EndLink
 
+\<wrapfig config center\><<<
+ \ifvmode\else%
+   \ConfigureEnv{center}{\HtmlParOff}{\HtmlParOn}{\HCode{}}{}%
+ \fi%
+>>>
+
+
 %%%%%%%%%%%%%%%%%%%%%%%
 \subsection{endfloat}
 %%%%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.