aboutsummaryrefslogtreecommitdiff
path: root/src/common/StringUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/StringUtil.cpp')
-rw-r--r--src/common/StringUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/StringUtil.cpp b/src/common/StringUtil.cpp
index b13c0193..0cadc545 100644
--- a/src/common/StringUtil.cpp
+++ b/src/common/StringUtil.cpp
@@ -255,7 +255,7 @@ gsl::index Utf16ForwardUntil(std::u16string_view str, gsl::index position,
UnreachableCode();
}
-inline bool IsSpace(CodePoint c) { return c == 0x20; }
+inline bool IsSpace(CodePoint c) { return c == 0x20 || c == 0xA; }
gsl::index Utf16PreviousWord(std::u16string_view str, gsl::index position,
bool* is_space) {