thesadrogue / TheSadRogue.Primitives

A collection of primitive data structures for working with a 2-dimensional grid.
MIT License
21 stars 6 forks source link

Make `ToString` and `ExtendToString` Respect OS NewLine Configuration #92

Open Chris3606 opened 1 year ago

Chris3606 commented 1 year ago

Currently, the ToString and ExtendToString function implementations for grid views always use '\nas the newline character by default. This can cause display issues on some Windows terminal since the OS newline is\r\n`.

It may be worth making os.NewLine the default (at least for the ToString functions) so that they print appropriately out of the box.