[gnome-subtitles] Fix special characters (<, >, &, etc) not being displayed in the subtitle list



commit e17495f33774e46046c8c9e13ae9d377f7223a4a
Author: Pedro Castro <pedro gnomesubtitles org>
Date:   Sun Jul 17 16:17:36 2011 +0100

    Fix special characters (<,>,&,etc) not being displayed in the subtitle list
    
    The characters need to be escaped as pango markup is used.

 src/GnomeSubtitles/Ui/View/SubtitleView.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/GnomeSubtitles/Ui/View/SubtitleView.cs b/src/GnomeSubtitles/Ui/View/SubtitleView.cs
index 3c66e1e..0822879 100644
--- a/src/GnomeSubtitles/Ui/View/SubtitleView.cs
+++ b/src/GnomeSubtitles/Ui/View/SubtitleView.cs
@@ -355,11 +355,11 @@ public class SubtitleView {
 		bool first = true;
 		bool viewLineLengths = Base.Ui.Menus.ViewLineLengthsEnabled;
 		foreach (string line in subtitleText) {
-			textMarkup += (first ? String.Empty : "\n") + stylePrefix + line + styleSuffix + (viewLineLengths ? " <span size=\"small\"><sup>(" + line.Length + ")</sup></span>" : String.Empty);
+			textMarkup += (first ? String.Empty : "\n") + stylePrefix + GLib.Markup.EscapeText(line) + styleSuffix + (viewLineLengths ? " <span size=\"small\"><sup>(" + line.Length + ")</sup></span>" : String.Empty);
 			if (first)
 				first = false;
 		}
-
+			
 		renderer.Markup = textMarkup;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]