mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-10-31 17:15:28 +08:00 
			
		
		
		
	spelling
This commit is contained in:
		 Simon Cropp
					Simon Cropp
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						Patrik Svensson
					
				
			
						parent
						
							f417e297cd
						
					
				
				
					commit
					041aea2ae5
				
			| @@ -138,7 +138,7 @@ namespace Spectre.Console | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Convers a <see cref="int"/> to a <see cref="Color"/>. | ||||
|         /// Converts a <see cref="int"/> to a <see cref="Color"/>. | ||||
|         /// </summary> | ||||
|         /// <param name="number">The color number to convert.</param> | ||||
|         public static implicit operator Color(int number) | ||||
| @@ -147,7 +147,7 @@ namespace Spectre.Console | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Convers a <see cref="ConsoleColor"/> to a <see cref="Color"/>. | ||||
|         /// Converts a <see cref="ConsoleColor"/> to a <see cref="Color"/>. | ||||
|         /// </summary> | ||||
|         /// <param name="color">The color to convert.</param> | ||||
|         public static implicit operator Color(ConsoleColor color) | ||||
| @@ -156,7 +156,7 @@ namespace Spectre.Console | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Convers a <see cref="Color"/> to a <see cref="ConsoleColor"/>. | ||||
|         /// Converts a <see cref="Color"/> to a <see cref="ConsoleColor"/>. | ||||
|         /// </summary> | ||||
|         /// <param name="color">The console color to convert.</param> | ||||
|         public static implicit operator ConsoleColor(Color color) | ||||
| @@ -165,7 +165,7 @@ namespace Spectre.Console | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Convers a <see cref="Color"/> to a <see cref="ConsoleColor"/>. | ||||
|         /// Converts a <see cref="Color"/> to a <see cref="ConsoleColor"/>. | ||||
|         /// </summary> | ||||
|         /// <param name="color">The color to convert.</param> | ||||
|         /// <returns>A <see cref="ConsoleColor"/> representing the <see cref="Color"/>.</returns> | ||||
| @@ -207,7 +207,7 @@ namespace Spectre.Console | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Convers a color number into a <see cref="Color"/>. | ||||
|         /// Converts a color number into a <see cref="Color"/>. | ||||
|         /// </summary> | ||||
|         /// <param name="number">The color number.</param> | ||||
|         /// <returns>The color representing the specified color number.</returns> | ||||
| @@ -217,7 +217,7 @@ namespace Spectre.Console | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Convers a <see cref="ConsoleColor"/> to a <see cref="Color"/>. | ||||
|         /// Converts a <see cref="ConsoleColor"/> to a <see cref="Color"/>. | ||||
|         /// </summary> | ||||
|         /// <param name="color">The color to convert.</param> | ||||
|         /// <returns>A <see cref="Color"/> representing the <see cref="ConsoleColor"/>.</returns> | ||||
|   | ||||
| @@ -44,13 +44,13 @@ namespace Spectre.Console.Internal | ||||
|                 } | ||||
|                 else if (token.Kind == MarkupTokenKind.Text) | ||||
|                 { | ||||
|                     // Get the effecive style. | ||||
|                     // Get the effective style. | ||||
|                     var effectiveStyle = style.Combine(stack.Reverse()); | ||||
|                     result.Append(Emoji.Replace(token.Value), effectiveStyle); | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     throw new InvalidOperationException("Encountered unkown markup token."); | ||||
|                     throw new InvalidOperationException("Encountered unknown markup token."); | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|   | ||||
| @@ -189,7 +189,7 @@ namespace Spectre.Console.Internal | ||||
|                 var normalized = rgb ?? string.Empty; | ||||
|                 if (normalized.Length >= 3) | ||||
|                 { | ||||
|                     // Trim parenthesises | ||||
|                     // Trim parentheses | ||||
|                     normalized = normalized.Substring(3).Trim(); | ||||
|  | ||||
|                     if (normalized.StartsWith("(", StringComparison.OrdinalIgnoreCase) && | ||||
|   | ||||
| @@ -19,7 +19,7 @@ namespace Spectre.Console.Rendering | ||||
|         public string Text { get; } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets a value indicating whether or not this is an expicit line break | ||||
|         /// Gets a value indicating whether or not this is an explicit line break | ||||
|         /// that should be preserved. | ||||
|         /// </summary> | ||||
|         public bool IsLineBreak { get; } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user