From a895dc15f97dee1a45eee4d881d14d2f0ce0eb91 Mon Sep 17 00:00:00 2001 From: Michal Schulz Date: Tue, 15 Jun 2021 12:08:00 +0000 Subject: [PATCH] eeschema label edit dialog replaces '\r' occurances with '\n'. --- eeschema/dialogs/dialog_edit_label.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/dialogs/dialog_edit_label.cpp b/eeschema/dialogs/dialog_edit_label.cpp index 949d2019fb..d979e5c383 100644 --- a/eeschema/dialogs/dialog_edit_label.cpp +++ b/eeschema/dialogs/dialog_edit_label.cpp @@ -342,6 +342,10 @@ bool DIALOG_LABEL_EDITOR::TransferDataFromWindow() if( !text.IsEmpty() ) { +#ifdef __WXMAC__ + // On macOS CTRL+Enter produces '\r' instead of '\n' regardless of EOL setting + text.Replace( "\r", "\n" ); +#endif m_CurrentText->SetText( text ); } else if( !m_CurrentText->IsNew() )