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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Mar 15 14:39:09 CET 2023


Author: michal_h21
Date: 2023-03-15 13:39:09 +0000 (Wed, 15 Mar 2023)
New Revision: 1307

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Fixed wrong opening paragraph in theindex

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-03-13 12:58:27 UTC (rev 1306)
+++ trunk/lit/ChangeLog	2023-03-15 13:39:09 UTC (rev 1307)
@@ -1,3 +1,13 @@
+2023-03-15  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex(amsart.4ht, amsart.4ht, amsbook.4ht,
+	amsproc.4ht, article.4ht, book.4ht, mwart.4ht,
+	mwbk.4ht, mwrep.4ht, report.4ht, scrbook.4ht,
+	scrreprt.4ht),
+	* tex4ht-html4.tex (html4.4ht): Fixed wrong first pagaraph in
+	theindex environment.
+	https://tex.stackexchange.com/a/679239/2891
+	
 2023-03-13  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-fonts-noncjk.tex (

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-03-13 12:58:27 UTC (rev 1306)
+++ trunk/lit/tex4ht-4ht.tex	2023-03-15 13:39:09 UTC (rev 1307)
@@ -12802,8 +12802,8 @@
 
 \<book-report-article idx\><<<
 \long\def\c:theindex:#1#2#3#4#5#6#7#8#9{%
-   \def\theindex{%
-      \def\idx:item{\SaveEverypar\ht:everypar{}#1}%
+   \def\theindex{\SaveEverypar\ht:everypar{}#1%
+      \def\idx:item{}%
       \def\endtheindex{\idx:item#2\RecallEverypar}%
       \def\item{\idx:item\def\idx:item{#4}\let\index|=\@gobble #3}%
       \def\subitem{\idx:item\def\idx:item{#6}\let\index|=\@gobble #5}%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2023-03-13 12:58:27 UTC (rev 1306)
+++ trunk/lit/tex4ht-html4.tex	2023-03-15 13:39:09 UTC (rev 1307)
@@ -4519,13 +4519,12 @@
 \Configure{@begin}{theindex}{\section*{\indexname}}
 \Configure{theindex}
    {\ifvmode \IgnorePar\fi \EndP
-    \HCode{<div class="theindex">}\let\end:theidx\empty}
+    \HCode{<div class="theindex">}\HCode{<p class="theindex">}\def\end:theidx{\HCode{</p>}}}
    {\end:theidx\HCode{</div>}}
    {} {\HCode{<br />}\hfil\break}
    {\ \ \ \ } {\HCode{<br />}\hfil\break}
    {\ \ \ \ \ \ \ \ } {\HCode{<br />}\hfil\break}
-   {\hbox{\end:theidx\HCode{<p class="theindex">}}%
-    \def\end:theidx{\HCode{</p>}}}
+   {\hbox{\end:theidx\HCode{<p class="theindex">}}}
 >>>
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -4557,7 +4556,7 @@
                use the command line option `index=i' (e.g., index=2)}
 \Configure{theindex}
    {\ifvmode \IgnorePar\fi \EndP
-    \HCode{<div class="theindex">}\let\end:theidx|=\empty}
+    \HCode{<div class="theindex">}\HCode{<p class="theindex">}\def\end:theidx{\HCode{</p>}}}
    {\end:theidx\HCode{</div>}}
    {\hbox\bgroup\HCode{<span class="index-item">}} 
    {\HCode{<br /></span>}\egroup\hfill\break}
@@ -4565,8 +4564,7 @@
    {\HCode{<br /></span>}\egroup\hfill\break}
    {\hbox\bgroup\HCode{<span class="index-subsubitem">}\ \ \ \ \ \ \ \ } 
    {\HCode{<br /></span>}\egroup\hfill\break}
-   {\hbox{\end:theidx\HCode{<p class="theindex">}}%
-    \def\end:theidx{\HCode{</p>}}}
+   {\hbox{\end:theidx\HCode{<p class="theindex">}}}
 \Css{.index-item, .index-subitem, .index-subsubitem {display:block}}
 >>>
 
@@ -4577,13 +4575,12 @@
                use the command line option `index=i' (e.g., index=2)}
 \Configure{theindex}
    {\ifvmode \IgnorePar\fi \EndP
-    \HCode{<div class="theindex">}\let\end:theidx|=\empty}
+    \HCode{<div class="theindex">}\HCode{<p class="theindex">}\def\end:theidx{\HCode{</p>}}}
    {\end:theidx\HCode{</div>}}
    {} {\hfil\break\HCode{<br />}}
    {\ \ \ \ } {\hfil\break\HCode{<br />}}
    {\ \ \ \ \ \ \ \ } {\hfil\break\HCode{<br />}}
-   {\hbox{\end:theidx\HCode{<p class="theindex">}}%
-    \def\end:theidx{\HCode{</p>}}}
+   {\hbox{\end:theidx\HCode{<p class="theindex">}}}
 >>>
 
 \<conf multi cols\><<<



More information about the tex4ht-commits mailing list.