Remove extra dos newlines from scintilla editor. Closes #1493

This commit is contained in:
baldurk
2019-08-12 17:03:32 +01:00
parent 53fdd792b7
commit 93a546ab4b
+3 -1
View File
@@ -669,7 +669,9 @@ void PythonShell::on_saveScript_clicked()
QFile f(filename);
if(f.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text))
{
f.write(scriptEditor->getText(scriptEditor->textLength() + 1));
QString text = QString::fromUtf8(scriptEditor->getText(scriptEditor->textLength() + 1));
text.remove(QLatin1Char('\r'));
f.write(text.toUtf8());
}
else
{