diff options
author | demostanis <demostanis@protonmail.com> | 2022-10-22 15:38:21 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-24 23:29:18 +0100 |
commit | 3e8b5ac92012e19847e536a20a3f0ec7e5c787d3 (patch) | |
tree | 58294f8f5e5eeaa63231876148da783ca81015eb /Userland/Libraries/LibMarkdown | |
parent | f485db2501c32bd626d58973c8a34a81e09ca5dc (diff) | |
download | serenity-3e8b5ac92012e19847e536a20a3f0ec7e5c787d3.zip |
AK+Everywhere: Turn bool keep_empty to an enum in split* functions
Diffstat (limited to 'Userland/Libraries/LibMarkdown')
-rw-r--r-- | Userland/Libraries/LibMarkdown/Table.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibMarkdown/Table.cpp b/Userland/Libraries/LibMarkdown/Table.cpp index 417e604565..d0144e2a01 100644 --- a/Userland/Libraries/LibMarkdown/Table.cpp +++ b/Userland/Libraries/LibMarkdown/Table.cpp @@ -138,8 +138,8 @@ OwnPtr<Table> Table::parse(LineIterator& lines) if (peek_it.is_end()) return {}; - auto header_segments = first_line.split_view('|', true); - auto header_delimiters = peek_it->split_view('|', true); + auto header_segments = first_line.split_view('|', SplitBehavior::KeepEmpty); + auto header_delimiters = peek_it->split_view('|', SplitBehavior::KeepEmpty); if (!header_segments.is_empty()) header_segments.take_first(); @@ -214,7 +214,7 @@ OwnPtr<Table> Table::parse(LineIterator& lines) ++lines; - auto segments = line.split_view('|', true); + auto segments = line.split_view('|', SplitBehavior::KeepEmpty); segments.take_first(); if (!segments.is_empty() && segments.last().is_empty()) segments.take_last(); |