We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa5744 commit f9707c3Copy full SHA for f9707c3
1 file changed
Source/Utility/CachedTextRender.h
@@ -43,7 +43,8 @@ class CachedTextRender {
43
bool firstToken = true;
44
bool hadFlag = false;
45
bool mathExpression = false;
46
- for (auto& line : lines) {
+ for (int i = 0; i < lines.size(); i++) {
47
+ auto& line = lines[i];
48
auto tokens = StringArray::fromTokens(line, true);
49
for (int i = 0; i < tokens.size(); i++) {
50
auto token = tokens[i];
@@ -66,7 +67,8 @@ class CachedTextRender {
66
67
attributedText.append(token, font, colour);
68
}
69
- attributedText.append("\n", font, colour);
70
+ if(i != lines.size() - 1)
71
+ attributedText.append("\n", font, colour);
72
73
74
return attributedText;
0 commit comments