\label{\detokenize{longtable:longtable-with-tabularcolumn}}

\begin{savenotes}\sphinxatlongtablestart\begin{longtable}{|c|c|}
\hline
\sphinxstylethead{\sphinxstyletheadfamily 
header1
\unskip}\relax &\sphinxstylethead{\sphinxstyletheadfamily 
header2
\unskip}\relax \\
\hline
\endfirsthead

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

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

\endlastfoot

cell1-1
&
cell1-2
\\
\hline
cell2-1
&
cell2-2
\\
\hline
cell3-1
&
cell3-2
\\
\hline
\end{longtable}\sphinxatlongtableend\end{savenotes}
