You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug AnsiConsole.Write(string value) is calling AnsiConsole.Write(String format, Object[] args) this have some unexpected and undocumented behaviour:
Call throws exceptions when string contains double braces and is not valid format string for string.Format
When the string could be valid format string and have single parameter like "test {0}" some internal data (Spectre.Console.Style) is passed to the format.
When there is more than one format parameter like "test {0} {1}" it throws another Format exception.
To Reproduce
Just call AnsiConsole.Write("{") or AnsiConsole.Write("test {0}") or AnsiConsole.Write("test {0} {1}")
Expected behavior
String passed as parameter to AnsiConsole.Write is just shown in console..
Screenshots
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered:
Information
Describe the bug
AnsiConsole.Write(string value)
is callingAnsiConsole.Write(String format, Object[] args)
this have some unexpected and undocumented behaviour:string.Format
To Reproduce
Just call
AnsiConsole.Write("{")
orAnsiConsole.Write("test {0}")
orAnsiConsole.Write("test {0} {1}")
Expected behavior
String passed as parameter to
AnsiConsole.Write
is just shown in console..Screenshots
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: