summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-01-24 07:52:46 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:28 +0900
commit3e441e8bad73e50c2bb34967291c4686b71f08c7 (patch)
tree182eba1d7e39764e410c6ada784de91adf7af239 /Xamarin.Forms.Platform.Tizen/Native
parent8c2d159d1a141bcb9cb59128624cde45503a419a (diff)
downloadxamarin-forms-3e441e8bad73e50c2bb34967291c4686b71f08c7.tar.gz
xamarin-forms-3e441e8bad73e50c2bb34967291c4686b71f08c7.tar.bz2
xamarin-forms-3e441e8bad73e50c2bb34967291c4686b71f08c7.zip
Refactoring LabelRenderer
- Optimize update of FormattedText Change-Id: Iad0b8a4972bfef97f28502d724d443188411f760
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs3
-rw-r--r--[-rwxr-xr-x]Xamarin.Forms.Platform.Tizen/Native/Span.cs3
2 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs b/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs
index da3d1460..cb93aff9 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs
@@ -92,8 +92,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
}
else
{
- var conStr = string.Concat(from span in this.Spans select span.GetMarkupText());
- return conStr.Replace(Environment.NewLine, "<br>");
+ return string.Concat(from span in Spans select span.GetMarkupText());
}
}
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Span.cs b/Xamarin.Forms.Platform.Tizen/Native/Span.cs
index c92fefcf..f0932f4b 100755..100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Span.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Span.cs
@@ -1,3 +1,4 @@
+using System;
using System.Text;
using EColor = ElmSharp.Color;
@@ -272,7 +273,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
{
return text.Replace("<", "&lt;")
.Replace(">", "&gt;")
- .Replace("\n", "<br>");
+ .Replace(Environment.NewLine, "<br>");
}
public string GetStyle()