mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2025-01-31 21:11: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;
|
var oldIgnoreWhiteSpace = Configuration.Settings.General.CharactersPerSecondsIgnoreWhiteSpace;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Configuration.Settings.General.CharactersPerSecondsIgnoreWhiteSpace = false;
|
||||||
foreach (Paragraph p in subtitle.Paragraphs)
|
foreach (Paragraph p in subtitle.Paragraphs)
|
||||||
{
|
{
|
||||||
var charactersPerSeconds = Utilities.GetCharactersPerSecond(p);
|
var charactersPerSeconds = Utilities.GetCharactersPerSecond(p);
|
||||||
|
@ -74,7 +74,7 @@ $HorzAlign = Center
|
|||||||
int number = 0;
|
int number = 0;
|
||||||
foreach (string line in lines)
|
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)
|
if (RegexTimeCodes.Match(line).Success)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user