mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 13:01:29 -10:00
This was reported by @AxemP who wanted to have leading tabs in a text line. However, split_str removed those characters by default since it ignores leading whitespace. To fix that unexpected behavior of gr.drawString I added a new paramter to split_str which disabled whitespace removal and enabled that flag for the scripting function. That should not be a problem for existing scripts since the expected behavior would be that leading whitespace remains in place and since we have not received any bug reports about missing white space I'm going to assume that no one has used the function like this before removed those characters by default since it ignores leading whitespace. To fix that unexpected behavior of gr.drawString I added a new paramter to split_str which disabled whitespace removal and enabled that flag for the scripting function. That should not be a problem for existing scripts since the expected behavior would be that leading whitespace remains in place and since we have not received any bug reports about missing white space I'm going to assume that no one has used the function like this before.