Fix missing new-line in log

This commit is contained in:
niksedk 2023-01-20 22:22:47 +01:00
parent 2277f2e59f
commit a57ebf0da1
2 changed files with 2 additions and 4 deletions

View File

@ -468,7 +468,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
_resultList = new List<ResultText>();
var process = GetWhisperProcess(waveFileName, model.Name, _languageCode, checkBoxTranslateToEnglish.Checked, OutputHandler);
var sw = Stopwatch.StartNew();
_outputText.Add($"Calling whisper ({Configuration.Settings.Tools.WhisperChoice}) with : {process.StartInfo.FileName} {process.StartInfo.Arguments}");
_outputText.Add($"Calling whisper ({Configuration.Settings.Tools.WhisperChoice}) with : {process.StartInfo.FileName} {process.StartInfo.Arguments}{Environment.NewLine}");
_startTicks = DateTime.UtcNow.Ticks;
_videoInfo = UiUtil.GetVideoInfo(waveFileName);
timer1.Start();
@ -497,7 +497,6 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
System.Threading.Thread.Sleep(100);
WindowsHelper.PreventStandBy();
Invalidate();
if (_cancel)
{
process.Kill();

View File

@ -180,7 +180,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
_resultList = new List<ResultText>();
var process = WhisperAudioToText.GetWhisperProcess(waveFileName, model.Name, _languageCode, checkBoxTranslateToEnglish.Checked, OutputHandler);
var sw = Stopwatch.StartNew();
_outputText.Add($"Calling whisper ({Configuration.Settings.Tools.WhisperChoice}) with : whisper {process.StartInfo.Arguments}");
_outputText.Add($"Calling whisper ({Configuration.Settings.Tools.WhisperChoice}) with : whisper {process.StartInfo.Arguments}{Environment.NewLine}");
buttonCancel.Visible = true;
try
{
@ -199,7 +199,6 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
System.Threading.Thread.Sleep(100);
WindowsHelper.PreventStandBy();
Invalidate();
if (_cancel)
{
process.Kill();