mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Merge branch 'feature/use-rich-text-box' of https://github.com/SubtitleEdit/subtitleedit into feature/use-rich-text-box
This commit is contained in:
commit
f4b5df3842
@ -145,9 +145,18 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
|
||||
_fixedArabicComma = false;
|
||||
var s = value;
|
||||
if (!Configuration.Settings.General.RightToLeftMode && s.EndsWith('،') && !s.Contains('\u202A'))
|
||||
if (!Configuration.Settings.General.RightToLeftMode && !s.Contains('\u202A'))
|
||||
{
|
||||
s = s.Replace("،", "\u202A،");
|
||||
string textNoTags = HtmlUtil.RemoveHtmlTags(s, true);
|
||||
if (textNoTags.EndsWith('،'))
|
||||
{
|
||||
s = s.Replace("،", "\u202A،");
|
||||
}
|
||||
else if (textNoTags.StartsWith('،'))
|
||||
{
|
||||
s = s.Replace("،", "،\u202A");
|
||||
}
|
||||
|
||||
_fixedArabicComma = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user