[gnome-subtitles] Fixed handling of text formatting tags



commit 3958033ed82b26834a0c76374b774b69d29b8c24
Author: Pedro Castro <mail pedrocastro org>
Date:   Sat Jun 6 19:10:52 2009 +0100

    Fixed handling of text formatting tags
---
 .../IO/SubtitleFormats/SubtitleFormatSubRip.cs     |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/SubLib/IO/SubtitleFormats/SubtitleFormatSubRip.cs b/src/SubLib/IO/SubtitleFormats/SubtitleFormatSubRip.cs
index 960aa6c..d2ee258 100644
--- a/src/SubLib/IO/SubtitleFormats/SubtitleFormatSubRip.cs
+++ b/src/SubLib/IO/SubtitleFormats/SubtitleFormatSubRip.cs
@@ -1,6 +1,6 @@
 /*
  * This file is part of SubLib.
- * Copyright (C) 2005-2008 Pedro Castro
+ * Copyright (C) 2005-2009 Pedro Castro
  *
  * SubLib is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ using System.Text.RegularExpressions;
 namespace SubLib.IO.SubtitleFormats {
 
 internal class SubtitleFormatSubRip : SubtitleFormat {
-	private static Regex styleExpression = new Regex(@"</?[^ubi\n]*[ubi]\w*>", RegexOptions.IgnoreCase);
+	private static Regex styleExpression = new Regex(@"</?\w*>", RegexOptions.IgnoreCase);
     
     internal SubtitleFormatSubRip () {
 		name = "SubRip";



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