Merge pull request #5418 from libretro/revert-5417-master
Revert "cut on underscores too, might be required to add other delimiters so …"
This commit is contained in:
commit
28397b334f
|
@ -188,7 +188,7 @@ char *word_wrap(char* buffer, const char *string, int line_width, bool unicode)
|
|||
}
|
||||
|
||||
/* check for whitespace */
|
||||
if (string[i] == ' ' || string[i] == '_')
|
||||
if (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] != ' ' || string[k] != '_')
|
||||
if (string[k] != ' ')
|
||||
continue;
|
||||
|
||||
buffer[k] = '\n';
|
||||
|
|
Loading…
Reference in New Issue