mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Formatting (whitespace only)
This commit is contained in:
parent
abdd80e672
commit
f54cf304a3
@ -139,7 +139,7 @@ namespace Nikse.SubtitleEdit.Core
|
||||
if (count != buffer.Length)
|
||||
return false;
|
||||
|
||||
return buffer[0] == 0xFF
|
||||
return buffer[0] == 0xFF
|
||||
&& buffer[1] == 0xD8
|
||||
&& buffer[2] == 0xFF;
|
||||
}
|
||||
|
@ -355,6 +355,7 @@ namespace Nikse.SubtitleEdit.Logic.Forms
|
||||
// Okay! Narrator: Hello!
|
||||
if (pre.IndexOfAny(new[] { '!', '?' }) > 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -889,7 +890,6 @@ namespace Nikse.SubtitleEdit.Logic.Forms
|
||||
text = text.TrimStart('-').TrimStart();
|
||||
}
|
||||
}
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
|
@ -2960,7 +2960,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
|
||||
// Hi <i> bad</i> man! -> Hi <i>bad</i> man!
|
||||
text = text.Replace(" " + openTag + " ", " " + openTag);
|
||||
text = text.Replace(Environment.NewLine + openTag + " ", Environment.NewLine + openTag);
|
||||
text = text.Replace(Environment.NewLine + openTag + " ", Environment.NewLine + openTag);
|
||||
|
||||
// Hi <i>bad </i> man! -> Hi <i>bad</i> man!
|
||||
text = text.Replace(" " + closeTag + " ", closeTag + " ");
|
||||
@ -3210,4 +3210,4 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ namespace Test.Logic.SubtitleFormats
|
||||
{
|
||||
_testContextInstance = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
|
||||
@ -67,7 +67,8 @@ namespace Test.Logic.SubtitleFormats
|
||||
|
||||
#region SubRip (.srt)
|
||||
|
||||
private static List<string> GetSrtLines(string text){
|
||||
private static List<string> GetSrtLines(string text)
|
||||
{
|
||||
var lines = new List<string>();
|
||||
string[] arr = text.Replace(Environment.NewLine, "\r").Replace("\n", "\r").Split('\r');
|
||||
foreach (string line in arr)
|
||||
|
Loading…
Reference in New Issue
Block a user