diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index bd8a32515b..e5c61d58e4 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1164 2022-07-01 14:16:09Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1165 2022-07-03 18:18:19Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -27773,14 +27773,18 @@ need also a treatment similar to \''\CT@column@color'? \NewConfigure{rowcolor}{1} >>> -Fixes for colored hlines +Fixes for colored hlines. The \`|\hline:color| can be used in CSS, for instance. \<fix colortbl\><<< % default hline color is black \def\hline:color{000} % save rule color in format usable in CSS \newcommand\tmp:arrayrulecolor[2][named]{% -\noalign{\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp}% +\ifvoid\@arstrutbox% test if we are inside a tabular environment +\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp% we are not +\else% +\noalign{\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp}% we are +\fi } \HLet\arrayrulecolor\tmp:arrayrulecolor >>> |