\label{\detokenize{longtable:longtable-having-both-stub-columns-and-problematic-cell}}

\begin{savenotes}\sphinxatlongtablestart\begin{longtable}{|*{3}{\X{1}{3}|}}
\hline
\sphinxstylethead{\sphinxstyletheadfamily 
header1
\unskip}\relax &\sphinxstylethead{\sphinxstyletheadfamily 
header2
\unskip}\relax &\sphinxstylethead{\sphinxstyletheadfamily 
header3
\unskip}\relax \\
\hline
\endfirsthead

\multicolumn{3}{c}%
{\makebox[0pt]{\sphinxtablecontinued{\tablename\ \thetable{} -- continued from previous page}}}\\
\hline
\sphinxstylethead{\sphinxstyletheadfamily 
header1
\unskip}\relax &\sphinxstylethead{\sphinxstyletheadfamily 
header2
\unskip}\relax &\sphinxstylethead{\sphinxstyletheadfamily 
header3
\unskip}\relax \\
\hline
\endhead

\hline
\multicolumn{3}{r}{\makebox[0pt][r]{\sphinxtablecontinued{Continued on next page}}}\\
\endfoot

\endlastfoot
\sphinxstylethead{\sphinxstyletheadfamily \begin{itemize}
\item {} 
instub1-1a

\item {} 
instub1-1b

\end{itemize}
\unskip}\relax &\sphinxstylethead{\sphinxstyletheadfamily 
instub1-2
\unskip}\relax &
notinstub1-3
\\
\hline\sphinxstylethead{\sphinxstyletheadfamily 
cell2-1
\unskip}\relax &\sphinxstylethead{\sphinxstyletheadfamily 
cell2-2
\unskip}\relax &
cell2-3
\\
\hline
\end{longtable}\sphinxatlongtableend\end{savenotes}
