MCPcopy Create free account
hub / github.com/astanin/python-tabulate / _pad_row

Function _pad_row

tabulate/__init__.py:2555–2563  ·  view source on GitHub ↗
(cells, padding)

Source from the content-addressed store, hash-verified

2553
2554
2555def _pad_row(cells, padding):
2556 if cells:
2557 if cells == SEPARATING_LINE:
2558 return SEPARATING_LINE
2559 pad = " " * padding
2560 padded_cells = [pad + cell + pad for cell in cells]
2561 return padded_cells
2562 else:
2563 return cells
2564
2565
2566def _build_simple_row(padded_cells, rowfmt):

Callers 1

_append_multiline_rowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected