summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-html4.tex
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source/tex4ht-html4.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-html4.tex13
1 files changed, 10 insertions, 3 deletions
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex
index ed7402d989..999d8887a1 100644
--- a/support/TeX4ht/source/tex4ht-html4.tex
+++ b/support/TeX4ht/source/tex4ht-html4.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1070 2022-02-02 22:04:53Z karl $
+% $Id: tex4ht-html4.tex 1071 2022-02-03 14:27:43Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -7625,8 +7625,15 @@ Currently, we either have empty \verb'\VBorder', or one defined to
\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