From 4b720c1ef6cc7d1bf9468bdfb6e6dfab5e18be45 Mon Sep 17 00:00:00 2001 From: Gerogiy Belyanin Date: Wed, 31 Jan 2024 17:10:13 +0300 Subject: [PATCH] Use LF as line endings on different platforms --- qrgui/textEditor/qscintillaTextEdit.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/qrgui/textEditor/qscintillaTextEdit.cpp b/qrgui/textEditor/qscintillaTextEdit.cpp index 753a40d01a..9e35c05114 100644 --- a/qrgui/textEditor/qscintillaTextEdit.cpp +++ b/qrgui/textEditor/qscintillaTextEdit.cpp @@ -201,14 +201,10 @@ void QScintillaTextEdit::setDefaultSettings() setMatchedBraceBackgroundColor(Qt::yellow); setUnmatchedBraceForegroundColor(Qt::blue); - // EOL symbol -#if defined Q_OS_LINUX + // EOL symbol, always use LF for all platforms + // Because TRIK robot is linux based + // we hope other tools (for NXT and EV3) accept it setEolMode(QsciScintilla::EolUnix); -#elif defined Q_OS_WIN - setEolMode(QsciScintilla::EolWindows); -#elif defined Q_OS_MAC - setEolMode(QsciScintilla::EolMac); -#endif // Input encoding setUtf8(true);