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

Function _padleft

tabulate/__init__.py:1067–1075  ·  view source on GitHub ↗

Flush right. >>> _padleft(6, '\u044f\u0439\u0446\u0430') == ' \u044f\u0439\u0446\u0430' True

(width, s)

Source from the content-addressed store, hash-verified

1065
1066
1067def _padleft(width, s):
1068 """Flush right.
1069
1070 >>> _padleft(6, '\u044f\u0439\u0446\u0430') == ' \u044f\u0439\u0446\u0430'
1071 True
1072
1073 """
1074 fmt = "{0:>%ds}" % width
1075 return fmt.format(s)
1076
1077
1078def _padright(width, s):

Callers 1

_align_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected