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 e6c6346 commit 1165b30Copy full SHA for 1165b30
src/Generator/Generators/CodeGenerator.cs
@@ -92,7 +92,14 @@ public virtual void GenerateDeclarationCommon(Declaration decl)
92
public virtual void GenerateDebug(Declaration decl)
93
{
94
if (Options.GenerateDebugOutput && !string.IsNullOrWhiteSpace(decl.DebugText))
95
- WriteLine("// DEBUG: " + decl.DebugText);
+ {
96
+ char[] newLineChars = {'\r', '\n'};
97
+ var text = decl.DebugText;
98
+ var index = text.IndexOfAny(newLineChars);
99
+ if (index >= 0)
100
+ text = text.Substring(0, index);
101
+ WriteLine("// DEBUG: " + text);
102
+ }
103
}
104
105
#endregion
0 commit comments