Skip to content

Commit 9f5e803

Browse files
authored
LaTeX: protect the fix of #13635 against a particular configuration (#13641)
1 parent dfa7254 commit 9f5e803

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sphinx/texinputs/sphinxlatextables.sty

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,12 @@
943943
% redefined by the cells of the nested table. So this is the alternative
944944
% macro which is executed on exit of nested table.
945945
\def\spx@nestedtable@resetcolortbl{%
946-
\spx@gpop@rownum
946+
\ifx\spx@rownum@stack\@empty\else
947+
% The stack can be empty if this is executed on exit of a nested table,
948+
% and the parent table has received the "nocolorrows" class, but globally
949+
% colorrows are activated (default). So we protected against that case.
950+
\spx@gpop@rownum
951+
\fi
947952
\sphinxSwitchCaseRowColor\rownum
948953
}
949954
\def\spx@table@reset@CT@everycr{%

0 commit comments

Comments
 (0)