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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Feb 3 15:27:44 CET 2022


Author: michal_h21
Date: 2022-02-03 14:27:43 +0000 (Thu, 03 Feb 2022)
New Revision: 1071

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
fixed support for vertical rules in tables

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-02-02 22:04:53 UTC (rev 1070)
+++ trunk/lit/ChangeLog	2022-02-03 14:27:43 UTC (rev 1071)
@@ -1,3 +1,9 @@
+2022-02-03  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): fixed support for vertical rules in
+	tables.
+	https://tug.org/pipermail/tex4ht/2022q1/003125.html
+
 2022-02-02  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (tasks.4ht),

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2022-02-02 22:04:53 UTC (rev 1070)
+++ trunk/lit/tex4ht-html4.tex	2022-02-03 14:27:43 UTC (rev 1071)
@@ -7625,8 +7625,15 @@
     \gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo }
    {\xdef\VBorder{\VBorder\ifnum \NewGroup> 0 </colgroup>\fi}
     \HAssign\NewGroup = 0 % \gdef\GROUPS{rules="groups"}}
-    \Css{\#TBL-\TableNo\space colgroup{border-left: 1px solid black;border-right:1px solid black;}}
-  \Css{\#TBL-\TableNo{border-collapse:collapse;}}}
+    % put vertical border for a column
+    \ifnum\ar:cnt > 0%
+      % in all other cases, we should put right border
+      \Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid black;}}%
+    \else%
+      % columns are numbered from 1. if \ar:cnt == 0 then it is the left border
+      \Css{\#TBL-\TableNo-1{border-left: 1px solid black;}}%
+    \fi%
+   }
    {\Advance:\NewGroup by 1 
     \ifnum \NewGroup=1 \xdef\VBorder{\VBorder<colgroup 
         id="TBL-\TableNo-\ar:cnt g">}\fi      



More information about the tex4ht-commits mailing list.