netlist xml exporter: fix incorrect keyword change (field was changed to f)

Keywords cannot be changed without a very good reason. the keyword is now field.
Fixes #9016
https://gitlab.com/kicad/code/kicad/issues/9016
This commit is contained in:
jean-pierre charras 2021-08-23 17:14:45 +02:00
parent a3441a969d
commit 9f22baf109
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ void NETLIST_EXPORTER_XML::addSymbolFields( XNODE* aNode, SCH_SYMBOL* aSymbol,
// non MANDATORY fields are output alphabetically
for( const std::pair<const wxString, wxString>& f : userFields )
{
XNODE* xfield = node( "f", UnescapeString( f.second ) );
XNODE* xfield = node( "field", UnescapeString( f.second ) );
xfield->AddAttribute( "name", UnescapeString( f.first ) );
xfields->AddChild( xfield );
}