odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.1k stars 550 forks source link

core:text/table - customizable table separators #3805

Closed Beefster09 closed 5 days ago

Beefster09 commented 1 week ago

It would be nice to be able to customize the table separators for text/table, including no borders at all. This can be very useful for aligning text into columns and could be used in the core:flags implementation for usage messages.

Based on the existing code, it doesn't look very hard to add and could be customized fairly easily with a struct containing a few runes.

Feoramund commented 1 week ago

I considered this for the refactor I did, but I decided to hold off on it for that PR.