altium: trim property string to avoid things like spurious newline characters
This commit is contained in:
parent
a29e55fe7e
commit
ff5a0f61b2
|
@ -109,7 +109,7 @@ std::map<wxString, wxString> ALTIUM_PARSER::ReadProperties()
|
|||
wxString key( keyS.c_str(), wxConvISO8859_1 );
|
||||
wxString value( valueS.c_str(), wxConvISO8859_1 );
|
||||
|
||||
kv.insert( { key, value } );
|
||||
kv.insert( { key.Trim(), value.Trim() } );
|
||||
}
|
||||
|
||||
return kv;
|
||||
|
|
|
@ -203,8 +203,7 @@ ABOARD6::ABOARD6( ALTIUM_PARSER& aReader )
|
|||
|
||||
ABOARD6_LAYER_STACKUP curlayer;
|
||||
|
||||
curlayer.name = ALTIUM_PARSER::PropertiesReadString(
|
||||
properties, layername, "" ); // TODO: trim string
|
||||
curlayer.name = ALTIUM_PARSER::PropertiesReadString( properties, layername, "" );
|
||||
curlayer.nextId = ALTIUM_PARSER::PropertiesReadInt( properties, layeri + "NEXT", 0 );
|
||||
curlayer.prevId = ALTIUM_PARSER::PropertiesReadInt( properties, layeri + "PREV", 0 );
|
||||
curlayer.copperthick =
|
||||
|
|
Loading…
Reference in New Issue