Skip to content

Commit

Permalink
Fixed support for spaces in "text" command
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasily committed Nov 16, 2015
1 parent 64e3c25 commit 36b683d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions plugins/LocalTestRendererListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,17 @@ else if (type.equals(TEXT))
{
x1 = Double.parseDouble(tokens[1]);
y1 = Double.parseDouble(tokens[2]);
text = tokens[3];
colorPos = 4;
StringBuilder sb = new StringBuilder();
for (int i = 3; i < tokens.length - 3; i++)
{
sb.append(tokens[i]);
if (i < tokens.length - 4)
{
sb.append(" ");
}
}
text = sb.toString();
colorPos = tokens.length - 3;
}
else
{
Expand Down

0 comments on commit 36b683d

Please sign in to comment.