summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-01-23 17:33:14 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-02-03 13:28:05 +0900
commitc25fdd3dc59e4e3fce40640cc725020ca8ba67b7 (patch)
treedd35bfd7a31ce290f865acdb234d90454679ef11
parent9df852ecbf0a87e126b8168408f10231920539ea (diff)
downloadxamarin-forms-c25fdd3dc59e4e3fce40640cc725020ca8ba67b7.tar.gz
xamarin-forms-c25fdd3dc59e4e3fce40640cc725020ca8ba67b7.tar.bz2
xamarin-forms-c25fdd3dc59e4e3fce40640cc725020ca8ba67b7.zip
Fix Span's behavior about new line.
TASK=TCAPI-2200 Change-Id: Ie261ccb4a7e6b51120e10c573e5e99e5c7a25f2b
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs b/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs
index f782efd1..da3d1460 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs
@@ -1,3 +1,4 @@
+using System;
using System.Collections.Generic;
using System.Linq;
@@ -91,7 +92,8 @@ namespace Xamarin.Forms.Platform.Tizen.Native
}
else
{
- return string.Concat(from span in this.Spans select span.GetMarkupText());
+ var conStr = string.Concat(from span in this.Spans select span.GetMarkupText());
+ return conStr.Replace(Environment.NewLine, "<br>");
}
}