[gnome-subtitles] Fix detection of AQTitle subtitles with multiple lines.
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Fix detection of AQTitle subtitles with multiple lines.
- Date: Tue, 20 Sep 2011 22:36:20 +0000 (UTC)
commit 75b4b2cbe54475159941a5dc7725e3a932508797
Author: Pedro Castro <pedro gnomesubtitles org>
Date: Tue Sep 20 23:36:07 2011 +0100
Fix detection of AQTitle subtitles with multiple lines.
.../IO/SubtitleFormats/SubtitleFormatAQTitle.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/SubLib/IO/SubtitleFormats/SubtitleFormatAQTitle.cs b/src/SubLib/IO/SubtitleFormats/SubtitleFormatAQTitle.cs
index 0cf926f..6e35fdf 100644
--- a/src/SubLib/IO/SubtitleFormats/SubtitleFormatAQTitle.cs
+++ b/src/SubLib/IO/SubtitleFormats/SubtitleFormatAQTitle.cs
@@ -1,6 +1,6 @@
/*
* This file is part of SubLib.
- * Copyright (C) 2007-2008 Pedro Castro
+ * Copyright (C) 2007-2008,2011 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
@@ -35,7 +35,7 @@ internal class SubtitleFormatAQTitle : SubtitleFormat {
lineBreak = "\n";
- format = @"-->>\s*\d+\s+.+\s+-->>\s*\d+";
+ format = @"-->>\s*\d+\s+(.+\n)*-->>\s*\d+";
subtitleIn = @"-->>\s*(?<StartFrame>\d+).*\n(?<Text>(.+\n)+)-->>\s*(?<EndFrame>\d+)";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]