Skip to content

Add a VRule class #4

Open
Open
@jwodder

Description

Add a VRule class for specifying the format of vertical rules in tables.

  • VRule constructor arguments (all keyword-only; cf. HRule constructor arguments in Add an HRule class #3):

    • fill: Optional[str] = None
    • joint: Optional[str] = None
    • top_cap: Optional[str] = None
    • bottom_cap: Optional[str] = None
    • border_style: Optional[BorderStyle] = None
  • VRules are passed to a Txtble as elements of a colsep list configuration option and/or as the value of a colsep_fill configuration option.

    • A string element s of colsep/value of colsep_fill is equivalent to VRule(fill=s, joint=s).
  • HRule (Add an HRule class #3) and VRule should have priority: int parameters (defaulting to 0) for controlling what happens when an HRule and a VRule meet; the rule with the higher priority is used to draw the joint, and if they have the same priority, ???

  • When an HRule or VRule meets the table border, whose cap style is used?

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Add a `VRule` class · Issue #4 · jwodder/txtble