Merge pull request #22 from red0124/bugfix/multiline_on_custom_delimiter

Fix bug where the default delimiter would be used for multiline data
This commit is contained in:
red0124 2023-07-25 00:46:43 +02:00 committed by GitHub
commit 8b928de086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -194,7 +194,7 @@ private:
////////////////
const split_data& resplit(line_ptr_type new_line, ssize_t new_size,
const std::string& delim = default_delimiter) {
const std::string& delim) {
return splitter_.resplit(new_line, new_size, delim);
}

View File

@ -152,7 +152,7 @@ public:
struct iterable {
struct iterator {
using value = std::conditional_t<get_object, T,
no_void_validator_tup_t<T, Ts...>>;
no_void_validator_tup_t<T, Ts...>>;
iterator() : parser_{nullptr} {
}
@ -623,7 +623,8 @@ private:
}
}
next_line_converter_.resplit(next_line_buffer_, size);
next_line_converter_.resplit(next_line_buffer_, size,
delim_);
}
}