From 4140ab118e6f6e07d801ec251d6eae44b9b57632 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Mon, 16 Aug 2021 09:51:49 -0400 Subject: [PATCH] Gerbview: remove extra linebreaks from errors messages --- gerbview/files.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gerbview/files.cpp b/gerbview/files.cpp index 9ef9a0bf31..57fa6e9fbc 100644 --- a/gerbview/files.cpp +++ b/gerbview/files.cpp @@ -39,8 +39,8 @@ // HTML Messages used more than one time: #define MSG_NO_MORE_LAYER _( "No more available layers in GerbView to load files" ) -#define MSG_NOT_LOADED _( "\nNot loaded: %s" ) -#define MSG_OOM _( "\nMemory was exhausted reading: %s" ) +#define MSG_NOT_LOADED _( "Not loaded: %s" ) +#define MSG_OOM _( "Memory was exhausted reading: %s" ) void GERBVIEW_FRAME::OnGbrFileHistory( wxCommandEvent& event ) @@ -527,7 +527,7 @@ bool GERBVIEW_FRAME::unarchiveFiles( const wxString& aFullFileName, REPORTER* aR //We cannot read a gerber job file as a gerber plot file: skip it if( aReporter ) { - msg.Printf( _( "Skipped file '%s' (gerber job file).\n" ), entry->GetName() ); + msg.Printf( _( "Skipped file '%s' (gerber job file)." ), entry->GetName() ); aReporter->Report( msg, RPT_SEVERITY_WARNING ); } @@ -572,7 +572,7 @@ bool GERBVIEW_FRAME::unarchiveFiles( const wxString& aFullFileName, REPORTER* aR if( aReporter ) { - msg.Printf( _( "Unable to create temporary file '%s'.\n"), + msg.Printf( _( "Unable to create temporary file '%s'." ), unzipped_tempfile ); aReporter->Report( msg, RPT_SEVERITY_ERROR ); } @@ -597,7 +597,7 @@ bool GERBVIEW_FRAME::unarchiveFiles( const wxString& aFullFileName, REPORTER* aR { if( aReporter ) { - msg.Printf( _( "Skipped file '%s' (unknown type).\n" ), entry->GetName() ); + msg.Printf( _( "Skipped file '%s' (unknown type)." ), entry->GetName() ); aReporter->Report( msg, RPT_SEVERITY_WARNING ); } } @@ -634,7 +634,7 @@ bool GERBVIEW_FRAME::unarchiveFiles( const wxString& aFullFileName, REPORTER* aR if( aReporter ) { - msg.Printf( _("unzipped file %s read error\n"), unzipped_tempfile ); + msg.Printf( _( "unzipped file %s read error" ), unzipped_tempfile ); aReporter->Report( msg, RPT_SEVERITY_ERROR ); } }