mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fix character count for auto-wrap
This commit is contained in:
parent
7c02cd1fd4
commit
fad6ea69c7
@ -355,7 +355,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
return;
|
||||
}
|
||||
|
||||
int length = HtmlUtil.RemoveHtmlTags(textBox.Text, true).Length;
|
||||
var length = textBox.Text.CountCharacters(false);
|
||||
if (e.Modifiers == Keys.None && e.KeyCode != Keys.Enter && length > Configuration.Settings.General.SubtitleLineMaximumLength)
|
||||
{
|
||||
string newText;
|
||||
|
Loading…
Reference in New Issue
Block a user