eeschema: Pad spice ops to differentiate

The .op command is isolated, so differentiating from .option with a
space will only work if we ensure all commandlines have a space at their
end.
This commit is contained in:
Seth Hillbrand 2019-10-23 06:28:18 -07:00
parent 10d23ad82d
commit 4004c733c8
1 changed files with 3 additions and 1 deletions

View File

@ -458,7 +458,9 @@ void NETLIST_EXPORTER_PSPICE::UpdateDirectives( unsigned aCtl )
|| couplingK.Matches( line ) // K## L## L## coupling constant
|| ( directiveStarted && line.StartsWith( '+' ) ) ) // multiline directives
{
m_directives.push_back( line );
// Pad the directive to ensure we distinguish between short directives
// and the start of a longer directive
m_directives.emplace_back( line + " " );
}
// Mark directive as started or continued in case it is a multi-line one