mirror of
https://github.com/openXC7/prjxray.git
synced 2026-08-29 01:13:57 +02:00
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 <[email protected]>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user