7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 21:31:42 +00:00

Specctra SES: support unquoted path with spaces in <session_id>

This commit is contained in:
Alex Shvartzkop 2025-01-05 23:40:27 +05:00
parent 39ab530db3
commit d625ce2e63

View File

@ -3378,10 +3378,17 @@ void SPECCTRA_DB::doSESSION( SESSION* growth )
)
*/
// The path can be defined by multiple tokens if there are spaces in it (e.g. by TopoR).
NeedSYMBOL();
growth->session_id = CurText();
std::stringstream fullPath;
fullPath << CurText();
while( ( tok = NextTok() ) != T_RIGHT )
while( ( tok = NextTok() ) != T_LEFT )
fullPath << " " << CurText();
growth->session_id = fullPath.str();
do
{
if( tok != T_LEFT )
Expecting( T_LEFT );
@ -3439,7 +3446,7 @@ void SPECCTRA_DB::doSESSION( SESSION* growth )
default:
Unexpected( CurText() );
}
}
} while( ( tok = NextTok() ) != T_RIGHT );
}