Browse Source

Fixed leading whitespace trimming after a {wc} or {c} tag

master
chrisgregan 9 years ago
parent
commit
66b1c5637f
  1. 2
      Assets/Fungus/UI/Scripts/TextTagParser.cs

2
Assets/Fungus/UI/Scripts/TextTagParser.cs

@ -118,7 +118,7 @@ namespace Fungus
if (trimLeading && if (trimLeading &&
token.type == TokenType.Words) token.type == TokenType.Words)
{ {
token.param.TrimStart(' ', '\t', '\r', '\n'); token.param = token.param.TrimStart(' ', '\t', '\r', '\n');
} }
if (token.type == TokenType.Clear || if (token.type == TokenType.Clear ||

Loading…
Cancel
Save