From 66b1c5637fb327505ae18e2ef29cfb8cbeb3b958 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Thu, 20 Aug 2015 11:22:26 +0100 Subject: [PATCH] Fixed leading whitespace trimming after a {wc} or {c} tag --- Assets/Fungus/UI/Scripts/TextTagParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ||