From 7aaf72c47304a1753b18e49c0b0a3a59505f9443 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 1 Jun 2020 20:36:58 +0100 Subject: [PATCH] Improve visuals of html error reporting. --- common/dialogs/wx_html_report_panel.cpp | 10 ++++------ pcbnew/netlist_reader/board_netlist_updater.cpp | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/common/dialogs/wx_html_report_panel.cpp b/common/dialogs/wx_html_report_panel.cpp index e866738019..2680587b1d 100644 --- a/common/dialogs/wx_html_report_panel.cpp +++ b/common/dialogs/wx_html_report_panel.cpp @@ -174,16 +174,14 @@ wxString WX_HTML_REPORT_PANEL::generateHtml( const REPORT_LINE& aLine ) switch( aLine.severity ) { case RPT_SEVERITY_ERROR: - retv = "" + _( "Error: " ) + "" + - aLine.message + "
"; + retv = "" + _( "Error: " ) + "" + "" + aLine.message + "
"; break; case RPT_SEVERITY_WARNING: - retv = "" + _( "Warning: " ) + - "" + aLine.message + "
"; + retv = "" + _( "Warning: " ) + aLine.message + "
"; break; case RPT_SEVERITY_INFO: - retv = "" + _( "Info: " ) + "" + aLine.message + - "
"; + retv = "" + _( "Info: " ) + aLine.message + "
"; break; case RPT_SEVERITY_ACTION: retv = "" + aLine.message + "
"; diff --git a/pcbnew/netlist_reader/board_netlist_updater.cpp b/pcbnew/netlist_reader/board_netlist_updater.cpp index da5f3f697f..05c25196fa 100644 --- a/pcbnew/netlist_reader/board_netlist_updater.cpp +++ b/pcbnew/netlist_reader/board_netlist_updater.cpp @@ -854,7 +854,7 @@ bool BOARD_NETLIST_UPDATER::UpdateNetlist( NETLIST& aNetlist ) m_reporter->ReportTail( wxT( "" ), RPT_SEVERITY_ACTION ); msg.Printf( _( "Total warnings: %d, errors: %d." ), m_warningCount, m_errorCount ); - m_reporter->ReportTail( msg, RPT_SEVERITY_ACTION ); + m_reporter->ReportTail( msg, RPT_SEVERITY_INFO ); if( m_errorCount ) {