[gnome-subtitles] Removed extra newline that was being written on output.
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Removed extra newline that was being written on output.
- Date: Sun, 11 Sep 2011 21:37:13 +0000 (UTC)
commit 769f0bfe88e0595a50af82c208bf851cb60224ef
Author: Pedro Castro <pedro gnomesubtitles org>
Date: Sun Sep 11 21:36:25 2011 +0100
Removed extra newline that was being written on output.
.../IO/SubtitleFormats/SubtitleFormatMacSUB.cs | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/SubLib/IO/SubtitleFormats/SubtitleFormatMacSUB.cs b/src/SubLib/IO/SubtitleFormats/SubtitleFormatMacSUB.cs
index 46ce1e4..b4e5502 100644
--- a/src/SubLib/IO/SubtitleFormats/SubtitleFormatMacSUB.cs
+++ b/src/SubLib/IO/SubtitleFormats/SubtitleFormatMacSUB.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
@@ -22,7 +22,8 @@ using System;
using System.Text.RegularExpressions;
namespace SubLib.IO.SubtitleFormats {
-
+
+//TODO: support empty lines
internal class SubtitleFormatMacSUB : SubtitleFormat {
internal SubtitleFormatMacSUB() {
@@ -37,7 +38,7 @@ internal class SubtitleFormatMacSUB : SubtitleFormat {
subtitleIn = @"/\s*(?<StartFrame>\d+)\n+(?<Text>.+([^\d]\n.+)?)\n+/\s*(?<EndFrame>\d+)";
- subtitleOut = "/<<StartFrame>>\n<<Text>>\n/<<EndFrame>>\n";
+ subtitleOut = "/<<StartFrame>>\n<<Text>>\n/<<EndFrame>>";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]