Skip to content

Commit 77ca271

Browse files
committed
Use Environment.Newline instead of hardcoded line endings.
1 parent 51cc07b commit 77ca271

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

Tube/Forms/FormSettings.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ public static void Save()
8282
{
8383
writer.Formatting = Formatting.Indented;
8484

85-
writer.WriteComment("\r\nGlue settings file\r\n");
86-
sw.Write("\r\n");
85+
writer.WriteComment(
86+
Environment.NewLine +
87+
"Glue settings file" +
88+
Environment.NewLine);
89+
sw.Write(Environment.NewLine);
8790

8891
List<FormSettings> settingsList = new List<FormSettings>(s_collectedSettings.Values);
8992

Tube/Forms/ViewButtons.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ internal void UpdateKeys()
7777
{
7878
Key key = Keyboard.GetKey(keyCode);
7979
this.textBoxButtonStates.Text += key.ToString();;
80-
this.textBoxButtonStates.Text += "\r\n";
80+
this.textBoxButtonStates.Text += Environment.NewLine;
8181
}
8282

8383
WindowHandleUtils.HideCaret(this.textBoxButtonStates.Handle);

Tube/Properties/AssemblyInfo.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
using System.Reflection;
1+
using System;
2+
using System.Reflection;
23
using System.Runtime.InteropServices;
34

5+
6+
47
// General Information about an assembly is controlled through the following
58
// set of attributes. Change these attribute values to modify the information
69
// associated with an assembly.
710
[assembly: AssemblyTitle("Glue")]
8-
[assembly: AssemblyDescription("WARNING: MAY LOG KEYS\r\nMacro tool and sticky stuff. Do not sniff. Light fuse and get away.")]
11+
[assembly: AssemblyDescription(
12+
"WARNING: MAY LOG KEYS. " +
13+
"Macro tool and sticky stuff. Do not sniff. Light fuse and get away.")]
914
[assembly: AssemblyConfiguration("")]
1015
[assembly: AssemblyCompany("Gluesoft is not a company, but it *is* soft.")]
1116
[assembly: AssemblyProduct("Glue")]

0 commit comments

Comments
 (0)