We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7edb779 commit 6beba45Copy full SHA for 6beba45
Rubberduck.Parsing/Rewriter/ModuleRewriter.cs
@@ -35,9 +35,9 @@ public void Rewrite()
35
36
var tentativeCode = _rewriter.GetText();
37
38
- while (tentativeCode.EndsWith(Environment.NewLine))
+ while (tentativeCode.EndsWith(Environment.NewLine + Environment.NewLine))
39
{
40
- tentativeCode = tentativeCode.Remove(tentativeCode.Length - 2);
+ tentativeCode = tentativeCode.Remove(tentativeCode.Length - Environment.NewLine.Length);
41
};
42
var newCode = tentativeCode;
43
0 commit comments