Fixed spaces in hangman/trivia hints
This commit is contained in:
		@@ -63,14 +63,13 @@ namespace NadekoBot.Modules.Games.Commands.Hangman
 | 
				
			|||||||
        public uint MaxErrors { get; } = 6;
 | 
					        public uint MaxErrors { get; } = 6;
 | 
				
			||||||
        public uint MessagesSinceLastPost { get; private set; } = 0;
 | 
					        public uint MessagesSinceLastPost { get; private set; } = 0;
 | 
				
			||||||
        public string ScrambledWord => "`" + String.Concat(Term.Word.Select(c =>
 | 
					        public string ScrambledWord => "`" + String.Concat(Term.Word.Select(c =>
 | 
				
			||||||
         {
 | 
					        {
 | 
				
			||||||
             if (!(char.IsLetter(c) || char.IsDigit(c)))
 | 
					            if (c == ' ')
 | 
				
			||||||
 | 
					                return " \u2000";
 | 
				
			||||||
 | 
					            if (!(char.IsLetter(c) || char.IsDigit(c)))
 | 
				
			||||||
                 return $" {c}";
 | 
					                 return $" {c}";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
             c = char.ToUpperInvariant(c);
 | 
					             c = char.ToUpperInvariant(c);
 | 
				
			||||||
 | 
					 | 
				
			||||||
             if (c == ' ')
 | 
					 | 
				
			||||||
                 return "   ";
 | 
					 | 
				
			||||||
             return Guesses.Contains(c) ? $" {c}" : " _";
 | 
					             return Guesses.Contains(c) ? $" {c}" : " _";
 | 
				
			||||||
         })) + "`";
 | 
					         })) + "`";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -98,7 +98,7 @@ namespace NadekoBot.Modules.Games.Trivia
 | 
				
			|||||||
                if (letters[i] != ' ')
 | 
					                if (letters[i] != ' ')
 | 
				
			||||||
                    letters[i] = '_';
 | 
					                    letters[i] = '_';
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            return string.Join(" \x200B", new string(letters).Replace(" ", " \x200B").AsEnumerable());
 | 
					            return string.Join(" ", new string(letters).Replace(" ", " \u2000").AsEnumerable());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user