diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-html4.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-html4.tex | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index c285ae3bed..fc0fe3bc74 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1401 2023-11-01 11:17:59Z michal_h21 $ +% $Id: tex4ht-html4.tex 1407 2023-11-09 16:19:15Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -19990,9 +19990,19 @@ changes. \<configure html4 latex\><<< \:CheckOption{p-width} \if:Option + \HAssign\:hcolwidthtbl=0 + \gdef\:hcolwidthfirst{1} \ExplSyntaxOn \Configure{HColWidth} - {\ifnum\HRow=1% output CSS only on the first row, to prevent duplication + {% + % in some cases, the first \HRow is not 1, for example with \multicolumn + % see https://github.com/michal-h21/make4ht/issues/114 + % when we enter a new table, we will save the first row + \ifx\:hcolwidthtbl\TableNo\else + \global\let\:hcolwidthtbl=\TableNo + \global\let\:hcolwidthfirst=\HRow + \fi + \ifx\HRow\:hcolwidthfirst% output CSS only on the first row, to prevent duplication \tmp:dim=\fp_to_dim:n{\dim_to_fp:n{\HColWidth}/\f@size} \Css{\#TBL-\TableNo\space td:nth-child(\HCol)% CSS selects ID of the current table column {width:\strip@pt\tmp:dim em;}} |