Skip to content

Commit 253f31c

Browse files
committed
DOC: added comment to LongTableBuilder.middle_separator() (pandas-dev#34360)
1 parent 9539efd commit 253f31c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/io/formats/latex.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,10 @@ def _caption_and_label(self) -> str:
476476
@property
477477
def middle_separator(self) -> str:
478478
iterator = self._create_row_iterator(over="header")
479+
480+
# the content between \endfirsthead and \endhead commands
481+
# mitigates repeated List of Tables entries in the final LaTeX
482+
# document when dealing with longtable environments; GH #34360
479483
elements = [
480484
"\\midrule",
481485
"\\endfirsthead",

0 commit comments

Comments
 (0)