[gnome-subtitles] Fixed bug with Sofni only allowing 2 lines of text per subtitle.
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Fixed bug with Sofni only allowing 2 lines of text per subtitle.
- Date: Sun, 18 Sep 2011 21:05:25 +0000 (UTC)
commit 966929f3f904511a920a8379eef21f80eee50b3c
Author: Pedro Castro <pedro gnomesubtitles org>
Date: Sun Sep 18 21:45:57 2011 +0100
Fixed bug with Sofni only allowing 2 lines of text per subtitle.
.../IO/SubtitleFormats/SubtitleFormatSofni.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/SubLib/IO/SubtitleFormats/SubtitleFormatSofni.cs b/src/SubLib/IO/SubtitleFormats/SubtitleFormatSofni.cs
index fe5261c..23473a4 100644
--- a/src/SubLib/IO/SubtitleFormats/SubtitleFormatSofni.cs
+++ b/src/SubLib/IO/SubtitleFormats/SubtitleFormatSofni.cs
@@ -34,7 +34,7 @@ internal class SubtitleFormatSofni : SubtitleFormat {
format = @".+\s+\d+:\d+:\d+[.,]\d+\\\d+:\d+:\d+[.,]\d+";
- subtitleIn = @"(?<Text>.+(\n.+)?)\n+(?<StartHours>\d+)\s*:\s*(?<StartMinutes>\d+)\s*:\s*(?<StartSeconds>\d+)\s*.\s*(?<StartCentiseconds>\d+)\\(?<EndHours>\d+)\s*:\s*(?<EndMinutes>\d+)\s*:\s*(?<EndSeconds>\d+)\s*.\s*(?<EndCentiseconds>\d+)";
+ subtitleIn = @"(?<Text>(.*(?!\n[ \f\r\t\v]*\d+:\d+:\d+[.,]\d+\\\d+:\d+:\d+[.,]\d+)\n)*.*\n)(?<StartHours>\d+)\s*:\s*(?<StartMinutes>\d+)\s*:\s*(?<StartSeconds>\d+)\s*.\s*(?<StartCentiseconds>\d+)\\(?<EndHours>\d+)\s*:\s*(?<EndMinutes>\d+)\s*:\s*(?<EndSeconds>\d+)\s*.\s*(?<EndCentiseconds>\d+)";
subtitleOut = "<<Text>>\n" +
"<<StartHours>>:<<StartMinutes>>:<<StartSeconds>>.<<StartCentiseconds>>" +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]