mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fix for unwanted "<br />" in MS translator - thx Miguel :)
This commit is contained in:
parent
0d766e8022
commit
d4002ee5ad
@ -17,6 +17,7 @@
|
|||||||
* FIXED:
|
* FIXED:
|
||||||
* Fix minor space issue with "Fix italic tags" - thx Adam
|
* Fix minor space issue with "Fix italic tags" - thx Adam
|
||||||
* Focus text box after "Set end, add new and go to new" - thx aoifeaoibhee
|
* 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)
|
4.0.2 (19th November 2023)
|
||||||
|
@ -100,6 +100,9 @@ namespace Nikse.SubtitleEdit.Core.AutoTranslate
|
|||||||
{
|
{
|
||||||
var textDictionary = (Dictionary<string, object>)o;
|
var textDictionary = (Dictionary<string, object>)o;
|
||||||
var res = (string)textDictionary["text"];
|
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);
|
results.Add(res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user