Skip to content

Commit

Permalink
tools: fix EOL handling in AddToChangelog.exe
Browse files Browse the repository at this point in the history
AddToChangelog.exe was using a mix of \r\n and \n EOLs.
Fully uses \r\n now.

Signed-off-by: Mloc-Argent <[email protected]>
  • Loading branch information
mloc committed Jun 12, 2014
1 parent 002cd97 commit 42110c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified html/AddToChangelog.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions tools/AddToChangelog/AddToChangelog/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private void addButton_Click(object sender, EventArgs e)

string[] changelogFile = null;

changelogFile = editBox.Text.Split('\n');
changelogFile = Regex.Split(editBox.Text, "\r\n");

if (changelogFile != null)
{
Expand Down Expand Up @@ -218,7 +218,7 @@ private void addButton_Click(object sender, EventArgs e)
}
else
{
editBox.Text = String.Join("\n", changelogFile);
editBox.Text = String.Join("\r\n", changelogFile);
ScrollToMarker();
}

Expand Down

0 comments on commit 42110c3

Please sign in to comment.