1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Text layout fix when using newlines with certain fonts on OSX.

This commit is contained in:
jules 2013-07-08 17:04:25 +01:00
parent 4346fdb5f5
commit 13304ac410

View file

@ -547,7 +547,7 @@ namespace TextLayoutHelpers
{
String trimmed (s.trimEnd());
if (trimmed.isEmpty() && ! s.isEmpty())
trimmed = s;
trimmed = s.replaceCharacters ("\r\n\t", " ");
return trimmed;
}