Add prettification to pl_editor; bump version

This commit is contained in:
Jon Evans 2023-11-18 18:54:15 -05:00
parent d1ecf3790c
commit 0face5a891
2 changed files with 5 additions and 4 deletions

View File

@ -86,7 +86,7 @@ public:
{ {
try try
{ {
m_fileout = new FILE_OUTPUTFORMATTER( aFilename ); m_fileout = new PRETTIFIED_FILE_OUTPUTFORMATTER( aFilename );
m_out = m_fileout; m_out = m_fileout;
} }
catch( const IO_ERROR& ioe ) catch( const IO_ERROR& ioe )
@ -101,7 +101,7 @@ public:
} }
private: private:
FILE_OUTPUTFORMATTER* m_fileout; PRETTIFIED_FILE_OUTPUTFORMATTER* m_fileout;
}; };
@ -203,7 +203,7 @@ void DS_DATA_MODEL_IO::Format( DS_DATA_MODEL* aSheet ) const
LOCALE_IO toggle; // switch on/off the locale "C" notation LOCALE_IO toggle; // switch on/off the locale "C" notation
m_out->Print( 0, "(kicad_wks (version %d) (generator \"pl_editor\") (generator_version \"%s\")\n", m_out->Print( 0, "(kicad_wks (version %d) (generator \"pl_editor\") (generator_version \"%s\")\n",
SEXPR_WORKSHEET_FILE_VERSION, GetMajorMinorVersion() ); SEXPR_WORKSHEET_FILE_VERSION, GetMajorMinorVersion().c_str().AsChar() );
// Setup // Setup
int nestLevel = 1; int nestLevel = 1;

View File

@ -32,4 +32,5 @@
//#define SEXPR_WORKSHEET_FILE_VERSION 20210606 // Initial version. //#define SEXPR_WORKSHEET_FILE_VERSION 20210606 // Initial version.
//#define SEXPR_WORKSHEET_FILE_VERSION 20220228 // Font support. //#define SEXPR_WORKSHEET_FILE_VERSION 20220228 // Font support.
#define SEXPR_WORKSHEET_FILE_VERSION 20230607 // Save images as base64. //#define SEXPR_WORKSHEET_FILE_VERSION 20230607 // Save images as base64.
#define SEXPR_WORKSHEET_FILE_VERSION 20231118 // Generator version; V8 file format cleanup