mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
cut on underscores too, might be required to add other delimiters so it doesn't get stuck on an endless loop on long strings
This commit is contained in:
parent
03009d618e
commit
4a4de389d1
@ -188,7 +188,7 @@ char *word_wrap(char* buffer, const char *string, int line_width, bool unicode)
|
||||
}
|
||||
|
||||
/* check for whitespace */
|
||||
if (string[i] == ' ')
|
||||
if (string[i] == ' ' || string[i] == '_')
|
||||
{
|
||||
buffer[i] = '\n';
|
||||
i++;
|
||||
@ -200,7 +200,7 @@ char *word_wrap(char* buffer, const char *string, int line_width, bool unicode)
|
||||
/* check for nearest whitespace back in string */
|
||||
for (k = i; k > 0; k--)
|
||||
{
|
||||
if (string[k] != ' ')
|
||||
if (string[k] != ' ' || string[k] != '_')
|
||||
continue;
|
||||
|
||||
buffer[k] = '\n';
|
||||
|
Loading…
x
Reference in New Issue
Block a user