Add an HRule
class
#3
Labels
c:borders-rules
enhancement
New feature or request therefor
library API
Relating to the public library API
Add an "
HRule
" class that can be passed in place of a data row to indicate that a horizontal rule should be inserted there in the resulting table.HRule
constructor arguments (all keyword-only):fill: Optional[str] = None
joint: Optional[str] = None
left_cap: Optional[str] = None
right_cap: Optional[str] = None
border_style: Optional[BorderStyle] = None
border_style
is used to fill in the default values for the other parameters. Whenborder_style
isNone
:fill
isNone
,border_style
inherits from theTxtble
'srow_border
(or fromborder_style
if that is not aBorderStyle
)fill
is notNone
, ???Give
HRule
options for (a) not applying the rule's style to the table border intersections at the ends and (b) not applying the rule's style at column intersections?header_border
androw_border
analogous options?header_border
androw_border
to be set toHRule
s?Give HRule options for controlling what happens when adjacent to a
top_border
,header_border
,row_border
, orbottom_border
(possibilities:*_border
takes precedence,HRule
takes precedence, draw both)Some basic test cases for this feature can be found on the
feature/hrule
branch.The text was updated successfully, but these errors were encountered: