fix(editor): standardize line endings to LF for scripts
This commit is contained in:
parent
284a176158
commit
f27e778f1c
1 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,8 @@ ScriptDocument::ScriptDocument(std::shared_ptr<Script> script, QWidget* parent):
|
|||
scintilla->setCaretForegroundColor(palette().text().color());
|
||||
scintilla->setFont(font);
|
||||
scintilla->setTabWidth(4);
|
||||
|
||||
scintilla->setEolMode(QsciScintilla::EolUnix); // LF endings
|
||||
|
||||
scintilla->setText(QString::fromStdString(script->source));
|
||||
|
||||
ObLuaLexer* lexer = new ObLuaLexer;
|
||||
|
|
Loading…
Add table
Reference in a new issue