fix(editor): standardize line endings to LF for scripts

This commit is contained in:
maelstrom 2025-07-10 12:11:07 +02:00
parent 284a176158
commit f27e778f1c

View file

@ -151,7 +151,8 @@ ScriptDocument::ScriptDocument(std::shared_ptr<Script> script, QWidget* parent):
scintilla->setCaretForegroundColor(palette().text().color()); scintilla->setCaretForegroundColor(palette().text().color());
scintilla->setFont(font); scintilla->setFont(font);
scintilla->setTabWidth(4); scintilla->setTabWidth(4);
scintilla->setEolMode(QsciScintilla::EolUnix); // LF endings
scintilla->setText(QString::fromStdString(script->source)); scintilla->setText(QString::fromStdString(script->source));
ObLuaLexer* lexer = new ObLuaLexer; ObLuaLexer* lexer = new ObLuaLexer;