ran tabspace

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@2330 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
XhmikosR 2013-12-28 15:08:01 +00:00
parent 8053493b75
commit 9fc293d39b
13 changed files with 25 additions and 25 deletions

View File

@ -670,7 +670,7 @@ namespace Nikse.SubtitleEdit.Controls
position = SecondsToXPosition(seconds);
}
pen.Dispose();
textBrush.Dispose();
textBrush.Dispose();
}
private static string GetDisplayTime(double seconds)

View File

@ -1674,7 +1674,7 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine +
}
if (addLeft < 0.01)
addLeft = left + 2;
left = addLeft;
left = addLeft;
DrawShadowAndPAth(parameter, g, path);
g.FillPath(new SolidBrush(c), path);

View File

@ -229,7 +229,7 @@ namespace Nikse.SubtitleEdit.Forms
// Russian fix
if (fileName.StartsWith("russian-aot"))
fileName = fileName.Replace("russian-aot", "ru_RU");
fileName = fileName.Replace("russian-aot", "ru_RU");
string path = Path.Combine(dictionaryFolder, fileName);
zip.ExtractFile(entry, path);

View File

@ -50,7 +50,7 @@ namespace Nikse.SubtitleEdit.Forms
{
FileInfo fi = new FileInfo(fileName);
var item = new ListViewItem(fileName);
item.SubItems.Add(Utilities.FormatBytesToDisplayFileSize(fi.Length));
item.SubItems.Add(Utilities.FormatBytesToDisplayFileSize(fi.Length));
string ext = Path.GetExtension(fileName).ToLower();
if (ext == ".png" || ext == ".jpg" || ext == ".bmp" || ext == ".gif" || ext == ".tif" || ext == ".tiff")
{

View File

@ -42,8 +42,8 @@ namespace Nikse.SubtitleEdit.Forms
textBoxLineBreak.Left = labelLineBreak.Left + labelLineBreak.Width + 3;
if (string.IsNullOrEmpty(Configuration.Settings.Language.ImportText.OpenTextFiles)) //TODO: Fix in 3.4
{
checkBoxMultipleFiles.Visible = false;
{
checkBoxMultipleFiles.Visible = false;
}
else
{
@ -196,7 +196,7 @@ namespace Nikse.SubtitleEdit.Forms
}
catch
{
line = string.Empty;
line = string.Empty;
}
line = line.Replace("|", Environment.NewLine);
@ -300,9 +300,9 @@ namespace Nikse.SubtitleEdit.Forms
{
// Replace user line break character with Environment.NewLine.
string line = _line;
if (textBoxLineBreak.Text.Length > 0)
{
line = _line.Replace(textBoxLineBreak.Text, Environment.NewLine);
if (textBoxLineBreak.Text.Length > 0)
{
line = _line.Replace(textBoxLineBreak.Text, Environment.NewLine);
}
if (line.Trim().Length == 0)
@ -746,7 +746,7 @@ namespace Nikse.SubtitleEdit.Forms
textBoxText.Visible = true;
buttonOpenText.Text = Configuration.Settings.Language.ImportText.OpenTextFile;
groupBoxSplitting.Enabled = true;
}
GeneratePreview();
}
@ -773,7 +773,7 @@ namespace Nikse.SubtitleEdit.Forms
{
var fi = new FileInfo(fileName);
var item = new ListViewItem(fileName);
item.SubItems.Add(Utilities.FormatBytesToDisplayFileSize(fi.Length));
item.SubItems.Add(Utilities.FormatBytesToDisplayFileSize(fi.Length));
if (fi.Length < 1024 * 1024) // max 1 mb
{
listViewInputFiles.Items.Add(item);

View File

@ -7963,7 +7963,7 @@ namespace Nikse.SubtitleEdit.Forms
if (!string.IsNullOrEmpty(_fileName))
Configuration.Settings.RecentFiles.Add(_fileName, FirstVisibleIndex, FirstSelectedIndex, _videoFileName, _subtitleAlternateFileName);
Configuration.Settings.General.RightToLeftMode = toolStripMenuItemRightToLeftMode.Checked;
SaveUndockedPositions();
SaveListViewWidths();
@ -18546,7 +18546,7 @@ namespace Nikse.SubtitleEdit.Forms
{
ImportAndOcrSrt("images", form.Subtitle);
}
_formPositionsAndSizes.SavePositionAndSize(form);
_formPositionsAndSizes.SavePositionAndSize(form);
}
}

View File

@ -1372,7 +1372,7 @@ namespace Nikse.SubtitleEdit.Forms
old.Dispose();
}
catch
{
{
// can crash is user is clicking around...
}
}

View File

@ -1357,7 +1357,7 @@ namespace Nikse.SubtitleEdit.Logic
settings.General.RightToLeftMode = Convert.ToBoolean(subNode.InnerText.Trim());
subNode = node.SelectSingleNode("LastSaveAsFormat");
if (subNode != null)
settings.General.LastSaveAsFormat = subNode.InnerText.Trim();
settings.General.LastSaveAsFormat = subNode.InnerText.Trim();
subNode = node.SelectSingleNode("ShowBetaStuff");
if (subNode != null)
settings.General.ShowBetaStuff = Convert.ToBoolean(subNode.InnerText.Trim());
@ -2461,7 +2461,7 @@ namespace Nikse.SubtitleEdit.Logic
textWriter.WriteElementString("MoveVideo100Or500MsPlaySmallSample", settings.General.MoveVideo100Or500MsPlaySmallSample.ToString());
textWriter.WriteElementString("DisableVideoAutoLoading", settings.General.DisableVideoAutoLoading.ToString());
textWriter.WriteElementString("RightToLeftMode", settings.General.RightToLeftMode.ToString());
textWriter.WriteElementString("LastSaveAsFormat", settings.General.LastSaveAsFormat);
textWriter.WriteElementString("LastSaveAsFormat", settings.General.LastSaveAsFormat);
textWriter.WriteElementString("ShowBetaStuff", settings.General.ShowBetaStuff.ToString());
textWriter.WriteElementString("NewEmptyDefaultMs", settings.General.NewEmptyDefaultMs.ToString(CultureInfo.InvariantCulture));

View File

@ -467,7 +467,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
xr.Close();
strm.Close();
}
rdr.Close();
rdr.Close();
}
catch (Exception exception)
{

View File

@ -467,7 +467,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
xr.Close();
strm.Close();
}
rdr.Close();
rdr.Close();
}
catch (Exception exception)
{

View File

@ -528,7 +528,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
else // If it's not left- or right-justified, it's centred.
{
tti.JustificationCode = 2; // 02h=centred text
}
}
tti.SubtitleNumber = (ushort)subtitleNumber;
tti.TextField = p.Text;
@ -1032,7 +1032,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
sb.Append("<u>");
else if (b == underlineOff)
sb.Append("</u>");
//else if (b == 0xD0) // em-dash
//else if (b == 0xD0) // em-dash
// sb.Append("");
else if (b == textFieldTerminator)
break;

View File

@ -169,7 +169,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
int seconds = int.Parse(parts[1]);
int milliseconds = int.Parse(parts[2]) * 10;
string text = GetTextAfterTimeCodes(p.Text);
var start = new TimeCode(0, minutes, seconds, milliseconds);
var start = new TimeCode(0, minutes, seconds, milliseconds);
var newParagraph = new Paragraph(start, new TimeCode(0,0,0,0), text);
subtitle.Paragraphs.Add(newParagraph);
}
@ -190,12 +190,12 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
if (next != null)
{
if (string.IsNullOrEmpty(next.Text))
{
{
p.EndTime = new TimeCode(TimeSpan.FromMilliseconds(next.StartTime.TotalMilliseconds));
}
else
{
p.EndTime.TotalMilliseconds = next.StartTime.TotalMilliseconds - Configuration.Settings.General.MininumMillisecondsBetweenLines;
p.EndTime.TotalMilliseconds = next.StartTime.TotalMilliseconds - Configuration.Settings.General.MininumMillisecondsBetweenLines;
}
if (p.Duration.TotalMilliseconds > Configuration.Settings.General.SubtitleMaximumDisplayMilliseconds)
{

View File

@ -119,7 +119,7 @@ namespace Test
Assert.AreEqual(expected, actual);
}
/// <summary>
///A test for RemoveHIInsideLine