From 22fd1132edd0cf95fa14c440deb28d7faaf201e7 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 31 Oct 2020 04:26:21 +0800 Subject: [PATCH] Improve setCase behaviour --- nel/src/gui/string_case.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nel/src/gui/string_case.cpp b/nel/src/gui/string_case.cpp index ced12e3ca..946b8d58a 100644 --- a/nel/src/gui/string_case.cpp +++ b/nel/src/gui/string_case.cpp @@ -40,7 +40,7 @@ namespace NLGUI // Counterexample: nevrax.com // ^ return ((c == ' ') || (c == '\n')) - && (lastChar == '.') || (lastChar == '!') || (lastChar == '?'); + && ((lastChar == '.') || (lastChar == '!') || (lastChar == '?') || (lastChar == '\n')); } void setCase(std::string &str, TCaseMode mode)