Return a string which represents a horizontal line.
(colwidths, colaligns, linefmt)
| 2621 | |
| 2622 | |
| 2623 | def _build_line(colwidths, colaligns, linefmt): |
| 2624 | "Return a string which represents a horizontal line." |
| 2625 | if not linefmt: |
| 2626 | return None |
| 2627 | if callable(linefmt): |
| 2628 | return linefmt(colwidths, colaligns) |
| 2629 | else: |
| 2630 | begin, fill, sep, end = linefmt |
| 2631 | cells = [fill * w for w in colwidths] |
| 2632 | return _build_simple_row(cells, (begin, sep, end)) |
| 2633 | |
| 2634 | |
| 2635 | def _append_line(lines, colwidths, colaligns, linefmt): |
no test coverage detected