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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Feb 16 22:37:32 CET 2022


Author: michal_h21
Date: 2022-02-16 21:37:32 +0000 (Wed, 16 Feb 2022)
New Revision: 1080

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
write css for table column width only once

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-02-16 21:13:48 UTC (rev 1079)
+++ trunk/lit/ChangeLog	2022-02-16 21:37:32 UTC (rev 1080)
@@ -1,5 +1,7 @@
 2022-02-16  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-html4.tex (html4.4ht): write CSS for table column width
+	only once.
 	* tex4ht-4ht.tex (listings.4ht): use normal space instead of \:nbsp,
 	in order to enable line breaking.
 	https://tex.stackexchange.com/a/634033/2891

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2022-02-16 21:13:48 UTC (rev 1079)
+++ trunk/lit/tex4ht-html4.tex	2022-02-16 21:37:32 UTC (rev 1080)
@@ -19752,10 +19752,12 @@
 \:CheckOption{p-width} \if:Option 
   |<10 em constant|>
   \Configure{HColWidth}
-     {\tmp:dim=\HColWidth \divide\tmp:dim by \ten:Em\relax
+     {\ifnum\HRow=1% output CSS only on the first row, to prevent duplication
+      \tmp:dim=\HColWidth \divide\tmp:dim by \ten:Em\relax
       \tmp:dim=10\tmp:dim
-      \Css{\#TBL-\TableNo-\HRow-\HCol
-                   {width:\expandafter\x:Em \the\tmp:dim em;}}}
+      \Css{\#TBL-\TableNo-\HCol% CSS selects ID of the current table column
+          {width:\expandafter\x:Em \the\tmp:dim em;}}
+     \fi}
 \else
    \Log:Note{for width specifications of tabular p entries, use
        the `p-width' command line option or a configuration similar



More information about the tex4ht-commits mailing list.