Formatting (whitespace only)

This commit is contained in:
Waldi Ravens 2015-06-28 20:40:42 +02:00
parent 787794cdd8
commit 341c4dbe68
9 changed files with 8 additions and 35 deletions

View File

@ -326,7 +326,6 @@ namespace Nikse.SubtitleEdit.Forms
var sb = new StringBuilder(); var sb = new StringBuilder();
foreach (string line in lines) foreach (string line in lines)
{ {
if (string.IsNullOrWhiteSpace(line)) if (string.IsNullOrWhiteSpace(line))
{ {
if (sb.Length > 0) if (sb.Length > 0)
@ -750,7 +749,6 @@ namespace Nikse.SubtitleEdit.Forms
textBoxText.Visible = true; textBoxText.Visible = true;
buttonOpenText.Text = Configuration.Settings.Language.ImportText.OpenTextFile; buttonOpenText.Text = Configuration.Settings.Language.ImportText.OpenTextFile;
groupBoxSplitting.Enabled = true; groupBoxSplitting.Enabled = true;
} }
GeneratePreview(); GeneratePreview();
} }

View File

@ -132,7 +132,6 @@ namespace Nikse.SubtitleEdit.Forms
listBoxFileNames.Items.Add("[" + text + "] " + node.InnerText); listBoxFileNames.Items.Add("[" + text + "] " + node.InnerText);
_italics.Add(node.Attributes["Italic"] != null); _italics.Add(node.Attributes["Italic"] != null);
} }
} }
} }
} }
@ -567,7 +566,6 @@ namespace Nikse.SubtitleEdit.Forms
return; return;
} }
} }
} }
} }

View File

@ -497,7 +497,6 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
} }
} }
} }
return true; return true;
@ -553,7 +552,6 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
} }
} }
} }
return true; return true;
@ -674,9 +672,7 @@ namespace Nikse.SubtitleEdit.Forms
if (count > giveUpCount - 100 && !tempVeryPrecise) if (count > giveUpCount - 100 && !tempVeryPrecise)
tempVeryPrecise = true; tempVeryPrecise = true;
} }
} }
private void removeForegroundToolStripMenuItem_Click(object sender, EventArgs e) private void removeForegroundToolStripMenuItem_Click(object sender, EventArgs e)
@ -742,4 +738,4 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
} }

View File

@ -230,7 +230,6 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup
bmp.SetPixel(x, y, color); bmp.SetPixel(x, y, color);
} }
} }
} }
public class PcsData public class PcsData
@ -290,7 +289,6 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup
} }
return mergedBmp; return mergedBmp;
} }
} }
public class PdsData public class PdsData

View File

@ -5,7 +5,6 @@ using Nikse.SubtitleEdit.Logic.VobSub;
namespace Nikse.SubtitleEdit.Logic.ContainerFormats.MaterialExchangeFormat namespace Nikse.SubtitleEdit.Logic.ContainerFormats.MaterialExchangeFormat
{ {
/// <summary> /// <summary>
/// Key-Length-Value MXF package - http://en.wikipedia.org/wiki/KLV + http://en.wikipedia.org/wiki/Material_Exchange_Format /// Key-Length-Value MXF package - http://en.wikipedia.org/wiki/KLV + http://en.wikipedia.org/wiki/Material_Exchange_Format
/// </summary> /// </summary>

View File

@ -116,7 +116,6 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
{ {
if (culture.ThreeLetterISOLanguageName == threeLetterIsoLanguageName) if (culture.ThreeLetterISOLanguageName == threeLetterIsoLanguageName)
{ {
string dictionaryFileName = null; string dictionaryFileName = null;
foreach (string dic in Directory.GetFiles(dictionaryFolder, "*.dic")) foreach (string dic in Directory.GetFiles(dictionaryFolder, "*.dic"))
{ {
@ -154,7 +153,6 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
{ {
if (culture.ThreeLetterISOLanguageName == threeLetterIsoLanguageName) if (culture.ThreeLetterISOLanguageName == threeLetterIsoLanguageName)
{ {
string dictionaryFileName = null; string dictionaryFileName = null;
foreach (string dic in Directory.GetFiles(dictionaryFolder, "*.dic")) foreach (string dic in Directory.GetFiles(dictionaryFolder, "*.dic"))
{ {
@ -636,7 +634,6 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
{ {
input = input.Replace(".'", Configuration.Settings.Tools.MusicSymbol); input = input.Replace(".'", Configuration.Settings.Tools.MusicSymbol);
} }
} }
return input; return input;
@ -1240,7 +1237,6 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
else else
_namesEtcListWithApostrophe.Add(s + "'"); _namesEtcListWithApostrophe.Add(s + "'");
} }
} }
if (_namesList != null) if (_namesList != null)
_namesList.Add(s); _namesList.Add(s);

View File

@ -42,7 +42,6 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
lines.Add(line); lines.Add(line);
format.LoadSubtitle(sub, lines, string.Empty); format.LoadSubtitle(sub, lines, string.Empty);
return sub.Header; return sub.Header;
} }
} }
@ -356,8 +355,6 @@ Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text
p.Extra = p.Extra.Split('/')[0].Trim(); p.Extra = p.Extra.Split('/')[0].Trim();
} }
} }
} }
catch catch
{ {
@ -566,7 +563,6 @@ Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text
text += "</font>"; text += "</font>";
} }
} }
} }
text = text.Replace(@"{\i1}", "<i>"); text = text.Replace(@"{\i1}", "<i>");
@ -890,7 +886,6 @@ Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text
s = s.Replace("{}", string.Empty); s = s.Replace("{}", string.Empty);
p.Text = s; p.Text = s;
} }
} }
} }

View File

@ -123,7 +123,9 @@ namespace Nikse.SubtitleEdit.Logic
} }
} }
} }
catch { } catch
{
}
return info; return info;
} }
@ -144,7 +146,9 @@ namespace Nikse.SubtitleEdit.Logic
info.Success = true; info.Success = true;
} }
} }
catch { } catch
{
}
return info; return info;
} }
@ -427,7 +431,6 @@ namespace Nikse.SubtitleEdit.Logic
_lastNoBreakAfterListLanguage = languageName; _lastNoBreakAfterListLanguage = languageName;
return _lastNoBreakAfterList; return _lastNoBreakAfterList;
} }
public static string AutoBreakLineMoreThanTwoLines(string text, int maximumLineLength, string language) public static string AutoBreakLineMoreThanTwoLines(string text, int maximumLineLength, string language)
@ -955,7 +958,6 @@ namespace Nikse.SubtitleEdit.Logic
} }
catch catch
{ {
} }
return encoding; return encoding;
} }
@ -3061,7 +3063,6 @@ namespace Nikse.SubtitleEdit.Logic
{ {
subtitle.Header += Environment.NewLine + Environment.NewLine + "[Events]" + Environment.NewLine; subtitle.Header += Environment.NewLine + Environment.NewLine + "[Events]" + Environment.NewLine;
} }
} }
} }
else else

View File

@ -29,7 +29,6 @@ namespace Test.Logic.Dictionaries
} }
catch catch
{ {
} }
} }
@ -55,7 +54,6 @@ namespace Test.Logic.Dictionaries
} }
catch catch
{ {
} }
} }
@ -80,7 +78,6 @@ namespace Test.Logic.Dictionaries
} }
catch catch
{ {
} }
} }
@ -106,7 +103,6 @@ namespace Test.Logic.Dictionaries
} }
catch catch
{ {
} }
} }
@ -132,7 +128,6 @@ namespace Test.Logic.Dictionaries
} }
catch catch
{ {
} }
} }
@ -159,7 +154,6 @@ namespace Test.Logic.Dictionaries
} }
catch catch
{ {
} }
} }
@ -185,7 +179,6 @@ namespace Test.Logic.Dictionaries
} }
catch catch
{ {
} }
} }
@ -213,9 +206,8 @@ namespace Test.Logic.Dictionaries
} }
catch catch
{ {
} }
} }
} }
} }