mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Merge pull request #6272 from OmrSi/autowrap-count-fix
Fix character count for auto-wrap
This commit is contained in:
commit
c4a8000147
@ -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