Skip to content

Commit 39813e2

Browse files
authored
Doc when no tabular_data
In this case, headers are not related to any column. Hence, no alignmennt can be inferred from `colglobalalign`of `colalign`.
1 parent 9258744 commit 39813e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tabulate/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,10 @@ def tabulate(
16621662
given header. Possible values are: "global" (no override), "same"
16631663
(follow column alignment), "right", "center", "left".
16641664
1665+
Note on intended behaviour: If there is no `tabular_data`, any column
1666+
alignment argument is ignored. Hence, in this case, header
1667+
alignment cannot be inferred from column alignment.
1668+
16651669
Table formats
16661670
-------------
16671671

0 commit comments

Comments
 (0)