SEGBITS FILE READER - Handle Whitespace

The previous commit caused the segbits file reader test to fail as
trailing whitespace was removed from the test_data.  Updated the reader
to additionally handle a tag immediately followed by a newline.

Signed-off-by: Jake Mercer <jake.mercer@civica.co.uk>
This commit is contained in:
Jake Mercer 2019-10-20 02:37:52 +01:00
parent bf11f43390
commit 57d8a3a6bd
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ SegbitsFileReader::iterator SegbitsFileReader::end() {
}
SegbitsFileReader::value_type::value_type(const absl::string_view& view) {
size_t separator_start = view.find_first_of(" \t");
size_t separator_start = view.find_first_of(" \t\n");
if (separator_start == absl::string_view::npos) {
tag_ = view;
bit_ = absl::string_view();