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:
John Beard
2026-02-13 18:14:56 +08:00
parent e6c4bbd429
commit af9a3281ca
+1 -1
View File
@@ -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 );