fix: Prevent new line from appearing on every pl code save

Fixes #982
This commit is contained in:
WerWolv
2023-03-20 08:29:00 +01:00
parent 0693bb8d51
commit c9342d90fb
2 changed files with 3 additions and 3 deletions

View File

@@ -895,7 +895,7 @@ namespace hex::plugin::builtin {
[this](const auto &path) {
wolv::io::File file(path, wolv::io::File::Mode::Create);
file.write(this->m_textEditor.GetText());
file.write(wolv::util::trim(this->m_textEditor.GetText()));
});
}
});
@@ -1057,7 +1057,7 @@ namespace hex::plugin::builtin {
else
sourceCode = ProviderExtraData::get(provider).patternLanguage.sourceCode;
tar.write(basePath, sourceCode);
tar.write(basePath, wolv::util::trim(sourceCode));
return true;
}
});