handle a newline at the end of a tsv (#2343)

Former-commit-id: fc6b2d2abce28b3ee15ae5fbb148f7b470da3595
This commit is contained in:
2022-11-23 08:13:05 -08:00
committed by GitHub
parent 37cd17e9dd
commit 12094c0019
@@ -73,6 +73,7 @@ vector<StringMap> TsvParser::ParseColumnEntryTsv(string tsv) {
while (!str.eof()) {
string mapEntryLine;
std::getline(str, mapEntryLine, '\n');
if (mapEntryLine.empty()) continue;
vector<string> keyAndValues = ParseLine(mapEntryLine);
string key = keyAndValues[0];