Skip to content

Commit

Permalink
Merge pull request Zaid-Ajaj#36 from FoothillSolutions/EscapeMessages…
Browse files Browse the repository at this point in the history
…InUbik

Escape messages in Ubik
  • Loading branch information
Zaid-Ajaj authored Aug 9, 2021
2 parents 949cbc9 + 891cf53 commit 9e78674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ubik/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ let analyzeFiles (fsharpFiles: FilePath[]) =
AnsiConsole.MarkupLine(" [blue]{0} |[/]", before.PadLeft(maxLength, ' '))
AnsiConsole.MarkupLine(" [blue]{0} |[/] {1}", current.PadLeft(maxLength, ' '), original)
AnsiConsole.MarkupLine(" [blue]{0} |[/] {1}", after.PadLeft(maxLength, ' '), marker)
AnsiConsole.MarkupLine("[orange1]{0}[/]", message.Message)
AnsiConsole.MarkupLine("[orange1]{0}[/]", message.Message.EscapeMarkup())
errorCount.Add(1)
else
let lines = [range.StartLine-1 .. range.EndLine+1]
Expand All @@ -142,7 +142,7 @@ let analyzeFiles (fsharpFiles: FilePath[]) =
then AnsiConsole.MarkupLine(" [blue]{0} |[/] ", line.ToString().PadLeft(maxLength, ' '))
else AnsiConsole.MarkupLine(" [blue]{0} |[/] {1}", line.ToString().PadLeft(maxLength, ' '), source.GetLineString(line - 1).EscapeMarkup())

AnsiConsole.MarkupLine("[orange1]{0}[/]", message.Message)
AnsiConsole.MarkupLine("[orange1]{0}[/]", message.Message.EscapeMarkup())
errorCount.Add(1)
let exitCode = errorCount.Sum()
Console.WriteLine()
Expand Down

0 comments on commit 9e78674

Please sign in to comment.