eeschema label edit dialog replaces '\r' occurances with '\n'.

This commit is contained in:
Michal Schulz 2021-06-15 12:08:00 +00:00 committed by Jeff Young
parent ff099453c8
commit a895dc15f9
1 changed files with 4 additions and 0 deletions

View File

@ -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() )