Pcbnew: export footprints in normal mode, not compact
Otherwise, footprints will export differently to how they save. In master, this is already fixed with KICAD_FORMAT::Prettify( prettyData, KICAD_FORMAT::FORMAT_MODE::NORMAL ); Fixes: https://gitlab.com/kicad/code/kicad/-/issues/23050
This commit is contained in:
@@ -272,7 +272,7 @@ void FOOTPRINT_EDIT_FRAME::ExportFootprint( FOOTPRINT* aFootprint )
|
||||
}
|
||||
|
||||
std::string prettyData = pcb_io.GetStringOutput( false );
|
||||
KICAD_FORMAT::Prettify( prettyData, true );
|
||||
KICAD_FORMAT::Prettify( prettyData, false );
|
||||
|
||||
fprintf( fp, "%s", prettyData.c_str() );
|
||||
fclose( fp );
|
||||
|
||||
Reference in New Issue
Block a user