OCR: Do not unbreak text when "use color" - thx borifax :)

See https://gitter.im/SubtitleEdit/subtitleedit
This commit is contained in:
Nikolaj Olsson 2020-05-13 06:51:21 +02:00
parent 346ca5764f
commit 5dd849c2cd

View File

@ -5261,7 +5261,6 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
if (_dvbSubtitles != null && checkBoxTransportStreamGetColorAndSplit.Checked) if (_dvbSubtitles != null && checkBoxTransportStreamGetColorAndSplit.Checked)
{ {
text = Utilities.UnbreakLine(text);
if (_dvbSubColor != Color.Transparent) if (_dvbSubColor != Color.Transparent)
{ {
text = "<font color=\"" + ColorTranslator.ToHtml(_dvbSubColor) + "\">" + text + "</font>"; text = "<font color=\"" + ColorTranslator.ToHtml(_dvbSubColor) + "\">" + text + "</font>";
@ -5418,8 +5417,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
} }
if (_dvbSubtitles != null && checkBoxTransportStreamGetColorAndSplit.Checked) if (_dvbSubtitles != null && checkBoxTransportStreamGetColorAndSplit.Checked)
{ {
text = Utilities.UnbreakLine(text);
if (_dvbSubColor != Color.Transparent) if (_dvbSubColor != Color.Transparent)
{ {
text = "<font color=\"" + ColorTranslator.ToHtml(_dvbSubColor) + "\">" + text + "</font>"; text = "<font color=\"" + ColorTranslator.ToHtml(_dvbSubColor) + "\">" + text + "</font>";