mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2025-01-31 13:01:39 +01:00
Netflix cps include white space
This commit is contained in:
parent
39f164e7f2
commit
ccc48018f3
@ -12,6 +12,7 @@ namespace Nikse.SubtitleEdit.Core.NetflixQualityCheck
|
||||
var oldIgnoreWhiteSpace = Configuration.Settings.General.CharactersPerSecondsIgnoreWhiteSpace;
|
||||
try
|
||||
{
|
||||
Configuration.Settings.General.CharactersPerSecondsIgnoreWhiteSpace = false;
|
||||
foreach (Paragraph p in subtitle.Paragraphs)
|
||||
{
|
||||
var charactersPerSeconds = Utilities.GetCharactersPerSecond(p);
|
||||
|
@ -74,7 +74,7 @@ $HorzAlign = Center
|
||||
int number = 0;
|
||||
foreach (string line in lines)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(line) && line[0] != '$' && !line.StartsWith("//"))
|
||||
if (!string.IsNullOrWhiteSpace(line) && line[0] != '$' && !line.StartsWith("//", StringComparison.Ordinal))
|
||||
{
|
||||
if (RegexTimeCodes.Match(line).Success)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user