MCPcopy Index your code
hub / github.com/astanin/python-tabulate / _padright

Function _padright

tabulate/__init__.py:1078–1086  ·  view source on GitHub ↗

Flush left. >>> _padright(6, '\u044f\u0439\u0446\u0430') == '\u044f\u0439\u0446\u0430 ' True

(width, s)

Source from the content-addressed store, hash-verified

1076
1077
1078def _padright(width, s):
1079 """Flush left.
1080
1081 >>> _padright(6, '\u044f\u0439\u0446\u0430') == '\u044f\u0439\u0446\u0430 '
1082 True
1083
1084 """
1085 fmt = "{0:<%ds}" % width
1086 return fmt.format(s)
1087
1088
1089def _padboth(width, s):

Callers 1

_align_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected