Skip to content

Commit ebe6786

Browse files
committed
Fixed extra line for ValTable parsed lines.
1 parent f80fb2a commit ebe6786

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/parser/dbclineparser.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,12 @@ bool DbcLineParser::ParseValTableLine(Comment_t* comm, const std::string& line)
560560
comm->Text += items[valpair + 1] + '\n';
561561
}
562562

563+
if (comm->Text.size() > 0)
564+
{
565+
// remove last '\n' symbol in the string end
566+
comm->Text.pop_back();
567+
}
568+
563569
// value table params were parse successfully
564570
ret = true;
565571
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy