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

@ -1 +1 @@
Subproject commit 0046a79f7449030098ffef3f763cc8fb10bd343f Subproject commit 5ca81bbe2fb32e6059f3a887d03da2fa6f39cea1

View File

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