mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Formatting (whitespace only)
This commit is contained in:
parent
a9a9dd8a16
commit
b9f2b76b38
@ -541,7 +541,6 @@ namespace Nikse.SubtitleEdit.Core.Forms
|
|||||||
st.Post = string.Empty;
|
st.Post = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
lineNumber++;
|
lineNumber++;
|
||||||
}
|
}
|
||||||
|
@ -776,7 +776,6 @@ Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text
|
|||||||
}
|
}
|
||||||
else if (!string.IsNullOrEmpty(rest))
|
else if (!string.IsNullOrEmpty(rest))
|
||||||
{
|
{
|
||||||
|
|
||||||
unknownTags += "\\" + rest;
|
unknownTags += "\\" + rest;
|
||||||
rest = string.Empty;
|
rest = string.Empty;
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,6 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
|||||||
|
|
||||||
return GetTime(EraseTiming, SpecifiedTimingUnit);
|
return GetTime(EraseTiming, SpecifiedTimingUnit);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CaptionTextPageManagement
|
public class CaptionTextPageManagement
|
||||||
|
@ -146,15 +146,13 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
|||||||
</Rows>
|
</Rows>
|
||||||
<Data Version='1'>
|
<Data Version='1'>
|
||||||
<Count>[COUNT]</Count>
|
<Count>[COUNT]</Count>
|
||||||
|
|
||||||
</Data>
|
</Data>
|
||||||
<Highlights Version='1'>
|
<Highlights Version='1'>
|
||||||
<Count>0</Count>
|
<Count>0</Count>
|
||||||
</Highlights>
|
</Highlights>
|
||||||
</Track1>
|
</Track1>
|
||||||
</Tracks>
|
</Tracks>
|
||||||
</MediaTransData>
|
</MediaTransData>";
|
||||||
";
|
|
||||||
|
|
||||||
const string paragraphTemplate = @"
|
const string paragraphTemplate = @"
|
||||||
<In>10:21:15:06</In>
|
<In>10:21:15:06</In>
|
||||||
@ -162,12 +160,13 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
|||||||
<Style></Style>
|
<Style></Style>
|
||||||
<StyleEx></StyleEx>
|
<StyleEx></StyleEx>
|
||||||
<Comment></Comment>
|
<Comment></Comment>
|
||||||
<Fields Version='2'>
|
<Fields Version=""2"">
|
||||||
<Field1>
|
<Field1>
|
||||||
<Type>Text</Type>
|
<Type>Text</Type>
|
||||||
<Data>Line1|Line2</Data>
|
<Data>Line1|Line2</Data>
|
||||||
</Field1>
|
</Field1>
|
||||||
</Fields>";
|
</Fields>";
|
||||||
|
|
||||||
var xml = new XmlDocument();
|
var xml = new XmlDocument();
|
||||||
xml.LoadXml(xmpTemplate.Replace('\'', '"').Replace("[COUNT]", subtitle.Paragraphs.Count.ToString()));
|
xml.LoadXml(xmpTemplate.Replace('\'', '"').Replace("[COUNT]", subtitle.Paragraphs.Count.ToString()));
|
||||||
var paragraphInsertNode = xml.DocumentElement.SelectSingleNode("Tracks/Track1/Data");
|
var paragraphInsertNode = xml.DocumentElement.SelectSingleNode("Tracks/Track1/Data");
|
||||||
|
@ -95,7 +95,6 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
{
|
{
|
||||||
var pattern = arguments[2].Trim();
|
var pattern = arguments[2].Trim();
|
||||||
|
|
||||||
|
|
||||||
var targetFormat = arguments[3].Trim().Replace(" ", string.Empty).ToLowerInvariant();
|
var targetFormat = arguments[3].Trim().Replace(" ", string.Empty).ToLowerInvariant();
|
||||||
if (targetFormat == "ass")
|
if (targetFormat == "ass")
|
||||||
{
|
{
|
||||||
|
@ -252,7 +252,7 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// // split into lines
|
/// split into lines
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static List<ImageSplitterItem> SplitVertical(NikseBitmap bmp, int minLineHeight, double averageLineHeight = -1)
|
public static List<ImageSplitterItem> SplitVertical(NikseBitmap bmp, int minLineHeight, double averageLineHeight = -1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user