Skip to content

Commit

Permalink
Use LF as line endings on different platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiy-belyanin committed Jan 31, 2024
1 parent f29c4bd commit 4b720c1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions qrgui/textEditor/qscintillaTextEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b720c1

Please sign in to comment.