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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Feb 5 10:54:48 CET 2025


Author: michal_h21
Date: 2025-02-05 09:54:48 +0000 (Wed, 05 Feb 2025)
New Revision: 1636

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
remove spurious paragraphs before sections

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2025-02-03 09:13:19 UTC (rev 1635)
+++ trunk/lit/ChangeLog	2025-02-05 09:54:48 UTC (rev 1636)
@@ -1,3 +1,9 @@
+2025-02-05  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (latex.4ht): remove spurious paragraphs before
+	sections.
+	https://puszcza.gnu.org.ua/bugs/index.php?647
+
 2025-02-03  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-sty.tex (tex4ht.sty): removed spurious space from

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2025-02-03 09:13:19 UTC (rev 1635)
+++ trunk/lit/tex4ht-4ht.tex	2025-02-05 09:54:48 UTC (rev 1636)
@@ -12177,7 +12177,8 @@
    \UseHookWithArguments{cmd/@sect/after}{8}{##1}{##2}{##3}{##4}{##5}{##6}{##7}{##8}%
  }
 \let\:startsection|=\@startsection
-\def\@startsection#1{\@ifstar{\Configure{secType}{like#1}}%
+% spurious paragraph is inserted at the start of headings, we need to ignore it, using \IgnorePar
+\def\@startsection#1{\ifvmode\HCode{}\IgnorePar\fi\@ifstar{\Configure{secType}{like#1}}%
    {\Configure{secType}{#1}}%
    \:Sc1\:startsection{#1}}
 \NewConfigure{secType}[1]{\def\sec:typ{#1}}



More information about the tex4ht-commits mailing list.