Skip to content

Commit

Permalink
Fix SPICE multilitne header parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Jan 10, 2025
1 parent 31e8728 commit b6c789b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qucs/extsimkernels/spicecompat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,14 @@ int spicecompat::getPins(const QString &file, const QString &compname, QStringLi
if (lin.startsWith("+")) {
lin.remove(0,1);
QStringList pins = lin.split(QRegularExpression("[ \\t]"),Qt::SkipEmptyParts);
pin_names.append(pins);
for(const auto &pin: pins) {
if (pin.toLower() == "params:") {
header_start = false;
break;
} else {
pin_names.append(pin);
}
}
} else {
// end of header
header_start = false;
Expand Down

0 comments on commit b6c789b

Please sign in to comment.