diff options
author | Adam Szczerbiak <a.szczerbiak@samsung.com> | 2017-02-01 06:49:24 +0100 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-07-10 11:11:18 +0900 |
commit | cb4aeaec0c00579d6c86e22d744860a1473597f0 (patch) | |
tree | 681b6e1e02f836f50e4d42b3c21e4a65667d2dd2 /Xamarin.Forms.Platform.Tizen/Native | |
parent | cc4e38ee88b2f378f1b8df505dd4e39e7e8bdf1d (diff) | |
download | xamarin-forms-cb4aeaec0c00579d6c86e22d744860a1473597f0.tar.gz xamarin-forms-cb4aeaec0c00579d6c86e22d744860a1473597f0.tar.bz2 xamarin-forms-cb4aeaec0c00579d6c86e22d744860a1473597f0.zip |
Fix ampersand handling in Span class
Ampersand character ('&') has not been handled correctly, causing the
text handled by Span class to display solely the initial part, up to the
first '&' character.
This bug has been spotted in Xamarin.Samples.TipCalc application, where
the displayed label's caption stated "Food ", but pre-programmed string
was "Food & Drink".
This commit makes the Span class handle the '&' character correctly,
which fixes that bug.
Change-Id: I0e17d39fbfae6a5ef5eea585a5229c4a5b0cca7e
Signed-off-by: Adam Szczerbiak <a.szczerbiak@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Native/Span.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Span.cs b/Xamarin.Forms.Platform.Tizen/Native/Span.cs index 028e9db9..41a20b7d 100644 --- a/Xamarin.Forms.Platform.Tizen/Native/Span.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/Span.cs @@ -318,7 +318,8 @@ namespace Xamarin.Forms.Platform.Tizen.Native string ConvertTags(string text) { - return text.Replace("<", "<") + return text.Replace("&", "&") + .Replace("<", "<") .Replace(">", ">") .Replace(Environment.NewLine, "<br>"); } |