MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / FormatColumn

Function FormatColumn

tools/cpp_format_struct_table.py:313–314  ·  view source on GitHub ↗
(column: str, align: ColumnAlign, width: int)

Source from the content-addressed store, hash-verified

311
312
313def FormatColumn(column: str, align: ColumnAlign, width: int):
314 return column.ljust(width) if align == ColumnAlign.LEFT else column.rjust(width)
315
316
317def FormatLine(line: str, line_state: LineState, state: ColumnsState) -> str:

Callers 1

FormatLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected