Skip to content

Commit 1908f5e

Browse files
author
Me
committed
Fix Main
1 parent 742be8a commit 1908f5e

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

sql_profiler/Code/Lexer/YukonLexer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ public string SyntaxHighlight(OutputWriter sb, string value)
138138
Next();
139139
}
140140

141+
sb.AppendLine();
142+
141143
lsTokenTypeHistory.Clear();
142144
lsTokenTypeHistory = null;
143145

sql_profiler/Code/SqlServerProfiler.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
using System;
3+
24
namespace ExpressProfiler
35
{
46

@@ -391,7 +393,13 @@ protected void NewEventArrived(ProfilerEvent evt, bool last)
391393

392394
// System.Console.WriteLine(evt);
393395
string caption = GetEventCaption(evt);
394-
System.Console.WriteLine(caption);
396+
System.Console.Write(caption);
397+
System.Console.Write(new string(' ', System.Console.BufferWidth - System.Console.CursorLeft));
398+
System.Console.WriteLine();
399+
400+
401+
402+
System.Console.WriteLine();
395403
string td = evt.GetFormattedData(ProfilerEventColumns.TextData, null);
396404
// System.Console.WriteLine(td);
397405

0 commit comments

Comments
 (0)