Formatting (whitespace only)

This commit is contained in:
Waldi Ravens 2020-04-20 06:57:32 +02:00
parent c28b2a08bd
commit da331e26dd
11 changed files with 44 additions and 48 deletions

View File

@ -19,7 +19,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
var sb = new StringBuilder();
foreach (var p in subtitle.Paragraphs)
{
//0:13 0:14 I'm from Londrina, Paraná, Brasil.
//0:13<HT>0:14<HT>I'm from Londrina, Paraná, Brasil.
sb.AppendLine($"{EncodeTimeCode(p.StartTime)}\t{EncodeTimeCode(p.EndTime)}\t{HtmlUtil.RemoveHtmlTags(p.Text, true).Replace(Environment.NewLine, " ")}");
}
return sb.ToString();

View File

@ -15,13 +15,13 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
public override string ToText(Subtitle subtitle, string title)
{
//001 10:00:00.22 10:00:04.22 00:00:04.00 #F CC00000D0 #C
//001<HT>10:00:00.22<HT>10:00:04.22<HT>00:00:04.00<HT>#F CC00000D0<HT>#C
//Studio presents
//002 10:00:13.02 10:00:15.22 00:00:02.20 #F CC00000D0 #C
//002 10:00:13.02 10:00:15.22 00:00:02.20<HT>#F CC00000D0<HT>#C
//What does my stuff
//mean to me ?
const string writeFormat = "{0:000} {1} {2} {3} #F CC00000D0 #C{4}{5}";
const string writeFormat = "{0:000} {1} {2} {3}\t#F CC00000D0\t#C{4}{5}";
var sb = new StringBuilder();
for (var index = 0; index < subtitle.Paragraphs.Count; index++)
{

View File

@ -248,7 +248,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr.Binary
string s = Path.GetFileNameWithoutExtension(dir);
list.Add(s);
}
return list.OrderBy(p=>p).ToList();
return list.OrderBy(p => p).ToList();
}
}

View File

@ -33,7 +33,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr.Tesseract
var jobs = (List<TesseractThreadRunner.ImageJob>)j;
var job = jobs.First();
var results = _tesseractRunner.Run(job.LanguageCode, job.PsmMode, job.EngineMode, jobs.Select(p=>p.FileName).ToList(), job.Run302);
var results = _tesseractRunner.Run(job.LanguageCode, job.PsmMode, job.EngineMode, jobs.Select(p => p.FileName).ToList(), job.Run302);
lock (QueueLock)
{

View File

@ -445,7 +445,6 @@ namespace Nikse.SubtitleEdit.Logic
}
}
private static Font _defaultSystemFont;
private static Font DefaultSystemFont
{
@ -593,9 +592,6 @@ namespace Nikse.SubtitleEdit.Logic
c.Font = GetDefaultFont();
}
foreach (Control inner in c.Controls)
{
FixFontsInner(inner, iterations - 1);