Convenience class to create a horizontal rule.
| 1527 | |
| 1528 | |
| 1529 | class Hrule(Rule): |
| 1530 | """Convenience class to create a horizontal rule.""" |
| 1531 | |
| 1532 | def __init__(self, state: ParserState, thickness: float | None = None): |
| 1533 | if thickness is None: |
| 1534 | thickness = state.get_current_underline_thickness() |
| 1535 | height = depth = thickness * 0.5 |
| 1536 | super().__init__(np.inf, height, depth, state) |
| 1537 | |
| 1538 | |
| 1539 | class Vrule(Rule): |