From 62d496ba6956c79aabac424e7ac31ac2c3e26784 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 13 Jan 2016 16:21:10 +0000 Subject: [PATCH] Trim leading space on each line of text in Writer.cs #346 --- Assets/Fungus/UI/Scripts/Writer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/UI/Scripts/Writer.cs b/Assets/Fungus/UI/Scripts/Writer.cs index 9b179826..5e7c8372 100644 --- a/Assets/Fungus/UI/Scripts/Writer.cs +++ b/Assets/Fungus/UI/Scripts/Writer.cs @@ -568,7 +568,7 @@ namespace Fungus yield break; } - string param = paramList[0]; + string param = paramList[0].TrimStart(' ', '\t', '\r', '\n'); string startText = text; string openText = OpenMarkup(); string closeText = CloseMarkup();