Add trailing newline to version prints

This commit is contained in:
Marek Roszko 2023-01-04 21:31:52 -05:00
parent fa7205ebbc
commit 0c717ec4f2
1 changed files with 3 additions and 3 deletions

View File

@ -41,16 +41,16 @@ int CLI::VERSION_COMMAND::doPerform( KIWAY& aKiway )
wxString format = FROM_UTF8( m_argParser.get<std::string>( ARG_FORMAT ).c_str() ); wxString format = FROM_UTF8( m_argParser.get<std::string>( ARG_FORMAT ).c_str() );
if( format == wxS( "plain" ) ) if( format == wxS( "plain" ) )
{ {
wxPrintf( GetMajorMinorPatchVersion() ); wxPrintf( "%s\n", GetMajorMinorPatchVersion() );
} }
else if( format == wxS( "commit" ) ) else if( format == wxS( "commit" ) )
{ {
wxPrintf( GetCommitHash() ); wxPrintf( "%s\n", GetCommitHash() );
} }
else if( format == wxS( "about" ) ) else if( format == wxS( "about" ) )
{ {
wxString msg_version = GetVersionInfoData( wxS( "kicad-cli" ) ); wxString msg_version = GetVersionInfoData( wxS( "kicad-cli" ) );
wxPrintf( msg_version ); wxPrintf( "%s\n", msg_version );
} }
else else
{ {