diff --git a/Assets/Fungus/UI/Scripts/TextTagParser.cs b/Assets/Fungus/UI/Scripts/TextTagParser.cs index eb7b211e..aadcc3c5 100644 --- a/Assets/Fungus/UI/Scripts/TextTagParser.cs +++ b/Assets/Fungus/UI/Scripts/TextTagParser.cs @@ -118,7 +118,7 @@ namespace Fungus if (trimLeading && token.type == TokenType.Words) { - token.param.TrimStart(' ', '\t', '\r', '\n'); + token.param = token.param.TrimStart(' ', '\t', '\r', '\n'); } if (token.type == TokenType.Clear ||