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

Function escape_empty

tabulate/__init__.py:344–348  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

342
343def _rst_escape_first_column(rows, headers):
344 def escape_empty(val):
345 if isinstance(val, (str, bytes)) and not val.strip():
346 return ".."
347 else:
348 return val
349
350 new_headers = list(headers)
351 new_rows = []

Callers 1

_rst_escape_first_columnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected