From 3dc0c789939441cf5d8e649fb4e2c402721da8cd Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 22 Nov 2021 15:36:14 +0000 Subject: [PATCH] Workaround baseline alignment issue in wxHtmlWindow In particular, don't allow a cell boundary between Japanese/Chinese chars and Roman chars. Fixes https://gitlab.com/kicad/code/kicad/issues/9718 --- common/dialogs/wx_html_report_panel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/dialogs/wx_html_report_panel.cpp b/common/dialogs/wx_html_report_panel.cpp index a01154db6f..9be4aa67bc 100644 --- a/common/dialogs/wx_html_report_panel.cpp +++ b/common/dialogs/wx_html_report_panel.cpp @@ -225,6 +225,10 @@ wxString WX_HTML_REPORT_PANEL::generateHtml( const REPORT_LINE& aLine ) } } + // wxHtmlWindow fails to do correct baseline alignment between Japanese/Chinese cells and + // Roman cells. This keeps the line in a single cell. + retv.Replace( " ", " " ); + return retv; }