7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 08:41:41 +00:00

Contain the unescaped netnames to XML output

Kicad netlists branch off the xml, so keep their output stable.  Only
use XML-based escaping for XML files
This commit is contained in:
Seth Hillbrand 2025-01-13 19:47:17 -08:00
parent 97787778eb
commit 6769efc807

View File

@ -767,9 +767,12 @@ XNODE* NETLIST_EXPORTER_XML::makeListOfNets( unsigned aCtl )
for( const auto& [ key, subgraphs ] : m_schematic->ConnectionGraph()->GetNetMap() )
{
wxString net_name = UnescapeString( key.Name );
wxString net_name = key.Name;
NET_RECORD* net_record = nullptr;
if( !( aCtl & GNL_OPT_KICAD ) )
net_name = UnescapeString( net_name );
if( subgraphs.empty() )
continue;