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.

(cherry picked from commit 4004c733c8)
This commit is contained in:
Seth Hillbrand 2019-10-23 06:28:18 -07:00 committed by Seth Hillbrand
parent e54ea90607
commit a7d554971c
1 changed files with 3 additions and 1 deletions

View File

@ -454,7 +454,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