mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	Fix exception formatting for generic methods (#639)
The generic parameters were double escaped and would display as `[[T0,T1,TRet]]` instead of `[T0,T1,TRet]`. This is because the `builder.AppendWithStyle` method already escapes its value so the caller must not escape the passed value.
This commit is contained in:
		| @@ -149,12 +149,12 @@ namespace Spectre.Console | ||||
|                 { | ||||
|                     builder.AppendWithStyle( | ||||
|                         settings.Style.NonEmphasized, | ||||
|                         type.Substring(0, index + 1).EscapeMarkup()); | ||||
|                         type.Substring(0, index + 1)); | ||||
|                 } | ||||
|  | ||||
|                 builder.AppendWithStyle( | ||||
|                     color, | ||||
|                     type.Substring(index + 1, type.Length - index - 1).EscapeMarkup()); | ||||
|                     type.Substring(index + 1, type.Length - index - 1)); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Cédric Luthi
					Cédric Luthi