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

Function _multiline_width

tabulate/__init__.py:1149–1151  ·  view source on GitHub ↗

Visible width of a potentially multiline content.

(multiline_s, line_width_fn=len)

Source from the content-addressed store, hash-verified

1147
1148
1149def _multiline_width(multiline_s, line_width_fn=len):
1150 """Visible width of a potentially multiline content."""
1151 return max(map(line_width_fn, re.split("[\r\n]", multiline_s)))
1152
1153
1154def _choose_width_fn(has_invisible, enable_widechars, is_multiline):

Callers 1

_choose_width_fnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected