This is related to tex4ht only.
tex4ht adds extra frame around tabular when it is a cell inside longtable but not when it is on its own. How to fix this issue?
MWE
\documentclass[11pt]{article}
\usepackage{longtable}
\begin{document}
When table inside long table, it adds extra frame
\begin{longtable}{|p{1.75in}p{1.75in}|}\hline
\begin{tabular}{p{1.75in}}
entry 1
\end{tabular}
&
\begin{tabular}{p{1.75in}}
entry 2
\end{tabular}
\\\hline
\end{longtable}
When table on its own, no extra frame shows up
\begin{tabular}{p{1.75in}}
entry 1
\end{tabular}
\end{document}
PDF output is correct
But html, after compiling using the command
make4ht -ulm default -a debug foo3.tex "htm,mathjax"
shows this
btw, This is not related to using longtable in tex4ht, even tabular inside tabular adds these extra frames to the inner tabular when not asking for them. MWE. Gives similar output as above in HTML
\documentclass[11pt]{article}
\begin{document}
When table inside table also, it adds extra frame
\begin{tabular}{|p{1.75in}p{1.75in}|}\hline
\begin{tabular}{p{1.75in}}
entry 1
\end{tabular}
&
\begin{tabular}{p{1.75in}}
entry 2
\end{tabular}
\\\hline
\end{tabular}
When table on its own, no extra frame shows up
\begin{tabular}{p{1.75in}}
entry 1
\end{tabular}
\end{document}
It seems that tex4ht inherits or uses the frame setting from the outer table if any for the frame.
Using TL 2020


