texlive[73741] Master/texmf-dist: remove spurious paragraphs before

commits+karl at tug.org commits+karl at tug.org
Wed Feb 5 22:44:00 CET 2025


Revision: 73741
          https://tug.org/svn/texlive?view=revision&revision=73741
Author:   karl
Date:     2025-02-05 22:44:00 +0100 (Wed, 05 Feb 2025)
Log Message:
-----------
remove spurious paragraphs before sections, tex4ht r1636

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1636

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2025-02-05 20:43:30 UTC (rev 73740)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2025-02-05 21:44:00 UTC (rev 73741)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2025-02-05 20:43:30 UTC (rev 73740)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2025-02-05 21:44:00 UTC (rev 73741)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1632 2025-01-23 12:34:17Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1636 2025-02-05 09:54:48Z michal_h21 $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2025 TeX Users Group    
@@ -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}}

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht	2025-02-05 20:43:30 UTC (rev 73740)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht	2025-02-05 21:44:00 UTC (rev 73741)
@@ -1,4 +1,4 @@
-% latex.4ht (2025-01-10-15:19), generated from tex4ht-4ht.tex
+% latex.4ht (2025-02-05-13:01), generated from tex4ht-4ht.tex
 % Copyright 1997-2009 Eitan M. Gurari
 % Copyright 2009-2025 TeX Users Group
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2025-01-10-15:19}
+\immediate\write-1{version 2025-02-05-13:01}
 
 \ifx\SaveMkHalignConf:g\:UnDef \else \expandafter\endinput\fi
 
@@ -1378,7 +1378,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}}
@@ -2403,7 +2404,7 @@
 \expandafter\:temp\usepackage!*?: 
 \def\:tempa{\@latex at e@error}
 \ifx \:temp\:tempa
-   % latex209.4ht (2025-01-10-15:19), generated from tex4ht-4ht.tex
+   % latex209.4ht (2025-02-05-13:01), generated from tex4ht-4ht.tex
 % Copyright 1997-2009 Eitan M. Gurari
 % Copyright 2009-2025 TeX Users Group
 %
@@ -2422,7 +2423,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2025-01-10-15:19}
+\immediate\write-1{version 2025-02-05-13:01}
 
 \let\:fnsymbol\@fnsymbol
 \def\@fnsymbol#1{{\hbox{$\:fnsymbol{#1}$}}}



More information about the tex-live-commits mailing list.