Fix for unwanted "<br />" in MS translator - thx Miguel :)

This commit is contained in:
niksedk 2023-11-27 09:36:23 +01:00
parent 0d766e8022
commit d4002ee5ad
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@
* FIXED:
* Fix minor space issue with "Fix italic tags" - thx Adam
* Focus text box after "Set end, add new and go to new" - thx aoifeaoibhee
* Fix for unwanted "<br />" in MS translator - thx Miguel
4.0.2 (19th November 2023)

View File

@ -100,6 +100,9 @@ namespace Nikse.SubtitleEdit.Core.AutoTranslate
{
var textDictionary = (Dictionary<string, object>)o;
var res = (string)textDictionary["text"];
res = res.Replace("<br />", Environment.NewLine);
res = res.Replace("<br/>", Environment.NewLine);
res = res.Replace("<br>", Environment.NewLine);
results.Add(res);
}
}