mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 14:32:35 +01:00
whitespace cleanup
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@705 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
a0d8750eb1
commit
c1331c286a
@ -102,7 +102,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
Instance._dataDir = BaseDirectory;
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
string installerPath = GetInstallerPath();
|
||||
string pf = System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles).TrimEnd('\\');
|
||||
string appDataRoamingPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Subtitle Edit");
|
||||
|
@ -36,7 +36,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
|
||||
info = TryReadVideoInfoViaMp4(fileName);
|
||||
if (info.Success)
|
||||
return info;
|
||||
return info;
|
||||
|
||||
return new VideoInfo { VideoCodec = "Unknown" };
|
||||
}
|
||||
@ -530,7 +530,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
|
||||
/// <summary>
|
||||
/// Will try to determine if buffer is utf-8 encoded or not.
|
||||
/// If any non-utf8 sequences are found then false is returned, if no utf8 multibytes sequences are found then false is returned.
|
||||
/// If any non-utf8 sequences are found then false is returned, if no utf8 multibytes sequences are found then false is returned.
|
||||
/// </summary>
|
||||
private static bool IsUtf8(byte[] buffer)
|
||||
{
|
||||
@ -567,7 +567,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
i++;
|
||||
}
|
||||
if (utf8Count == 0)
|
||||
return false; // not utf-8
|
||||
return false; // not utf-8
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -1096,7 +1096,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
sb.Append("*.mp4;"); // mp4 video files (can contain subtitles)
|
||||
sb.Append("*.m4v;"); // mp4 video files (can contain subtitles)
|
||||
sb.Append("*.mkv;"); // matroska files (can contain subtitles)
|
||||
sb.Append("*.sup;"); // blu-ray sup
|
||||
sb.Append("*.sup;"); // blu-ray sup
|
||||
sb.Append("*.son"); // SON text/tif
|
||||
sb.Append("|" + Configuration.Settings.Language.General.AllFiles + "|*.*");
|
||||
return sb.ToString();
|
||||
@ -1295,7 +1295,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
return true;
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{ // BAD PATTERN: Syntax error
|
||||
{ // BAD PATTERN: Syntax error
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@ -2047,7 +2047,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
break;
|
||||
case "":
|
||||
sb.Append("");
|
||||
break;
|
||||
break;
|
||||
default:
|
||||
code = code.TrimStart('#');
|
||||
if (code.StartsWith("x") || code.StartsWith("X"))
|
||||
@ -2060,7 +2060,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
sb.Append(Convert.ToChar(value));
|
||||
}
|
||||
catch
|
||||
{
|
||||
{
|
||||
}
|
||||
}
|
||||
else if (IsInteger(code))
|
||||
@ -2100,7 +2100,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
|
||||
internal static bool IsWordInUserPhrases(List<string> userPhraseList, int index, string[] words)
|
||||
{
|
||||
string current = words[index];
|
||||
string current = words[index];
|
||||
string prev = "-";
|
||||
if (index > 0)
|
||||
prev = words[index-1];
|
||||
@ -2169,6 +2169,6 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
|
||||
return resultKeys;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -41,4 +41,4 @@
|
||||
<dpiAware>true</dpiAware>
|
||||
</asmv3:windowsSettings>
|
||||
</asmv3:application>
|
||||
</assembly>
|
||||
</assembly>
|
@ -1173,7 +1173,7 @@ COPY /Y /V "$(ProjectDir)Dlls\Hunspellx64.dll" "$(TargetDir)"
|
||||
COPY /Y /V "$(ProjectDir)Dlls\Interop.QuartzTypeLib.dll" "$(TargetDir)"
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
|
@ -74,7 +74,7 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
|
Loading…
Reference in New Issue
Block a user