💬

Community answer

Collected from the ACE community Discord archive around 2024-04-15. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Aligning table columns without string.format width

🖼️ RenderingUpdated 2 days ago•0 views
string.format in GMod has no width modifiers - store the longest item's length per column and pad with string.rep(' ', longest - len) before concat.

How to pad strings for aligned columns (string.format lacks width in glua)

string.format in GMod has no width modifiers - store the longest item's length per column and pad with string.rep(' ', longest - len) before concat.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.