aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-11-17 23:10:52 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-11-23 13:23:38 +0300
commit714eda455e0554b6a7b23cce77c2bf522b8578b5 (patch)
tree24e9a6f7c09fa5c653221d106395b653da1adc6f
parent4b3718646a22fdaeab9088ed30dfe88e42cc215b (diff)
Make string_parser::parse_quoted() also treat newline as sub-strings separator
-rw-r--r--libbutl/string-parser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbutl/string-parser.cxx b/libbutl/string-parser.cxx
index aea1338..af5c1b3 100644
--- a/libbutl/string-parser.cxx
+++ b/libbutl/string-parser.cxx
@@ -14,7 +14,7 @@ namespace butl
inline static bool
space (char c) noexcept
{
- return c == ' ' || c == '\t';
+ return c == ' ' || c == '\t' || c == '\n' || c == '\r';
}
vector<pair<string, size_t>>