Formatting (whitespace only)

This commit is contained in:
Waldi Ravens 2016-07-08 21:36:25 +02:00
parent a9a9dd8a16
commit b9f2b76b38
12 changed files with 146 additions and 151 deletions

View File

@ -534,14 +534,13 @@ namespace Nikse.SubtitleEdit.Core.Forms
if (s.Contains("<i>") && !s.Contains("</i>") && st.Post.Contains("</i>"))
st.Post = st.Post.Replace("</i>", string.Empty);
if (lineNumber == parts.Length -1)
if (lineNumber == parts.Length - 1)
{
if (st.Post.Replace("♪", string.Empty).Replace("♫", string.Empty).Trim().Length == 0)
{
st.Post = string.Empty;
}
}
}
lineNumber++;
}

View File

@ -776,7 +776,6 @@ Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text
}
else if (!string.IsNullOrEmpty(rest))
{
unknownTags += "\\" + rest;
rest = string.Empty;
}

View File

@ -137,7 +137,6 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
return GetTime(EraseTiming, SpecifiedTimingUnit);
}
}
public class CaptionTextPageManagement

View File

@ -146,28 +146,27 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
</Rows>
<Data Version='1'>
<Count>[COUNT]</Count>
</Data>
<Highlights Version='1'>
<Count>0</Count>
</Highlights>
</Track1>
</Tracks>
</MediaTransData>
";
</MediaTransData>";
const string paragraphTemplate = @"
<In>10:21:15:06</In>
<Out>10:21:16:18</Out>
<Style></Style>
<StyleEx></StyleEx>
<Comment></Comment>
<Fields Version='2'>
<In>10:21:15:06</In>
<Out>10:21:16:18</Out>
<Style></Style>
<StyleEx></StyleEx>
<Comment></Comment>
<Fields Version=""2"">
<Field1>
<Type>Text</Type>
<Data>Line1|Line2</Data>
</Field1>
</Fields>";
</Fields>";
var xml = new XmlDocument();
xml.LoadXml(xmpTemplate.Replace('\'', '"').Replace("[COUNT]", subtitle.Paragraphs.Count.ToString()));
var paragraphInsertNode = xml.DocumentElement.SelectSingleNode("Tracks/Track1/Data");

View File

@ -95,7 +95,6 @@ namespace Nikse.SubtitleEdit.Logic
{
var pattern = arguments[2].Trim();
var targetFormat = arguments[3].Trim().Replace(" ", string.Empty).ToLowerInvariant();
if (targetFormat == "ass")
{

View File

@ -252,7 +252,7 @@ namespace Nikse.SubtitleEdit.Logic
}
/// <summary>
/// // split into lines
/// split into lines
/// </summary>
public static List<ImageSplitterItem> SplitVertical(NikseBitmap bmp, int minLineHeight, double averageLineHeight = -1)
{