[nostalgia/studio] Replace garbage last character with \n
This commit is contained in:
parent
fc246ee396
commit
d4983cf3c6
@ -104,8 +104,8 @@ void Project::writeObj(QString path, T *obj) const {
|
||||
const auto type = ox::buildTypeDef(obj);
|
||||
auto typeOut = ox::writeClaw(type.value, ox::ClawFormat::Organic);
|
||||
oxThrowError(typeOut);
|
||||
// erase garbage last character
|
||||
typeOut.value.pop_back();
|
||||
// replace garbage last character with new line
|
||||
typeOut.value.back() = '\n';
|
||||
// write to FS
|
||||
QString descPath = "/.nostalgia/type_descriptors/";
|
||||
const auto typePath = descPath + type.value->typeName.c_str();
|
||||
|
Loading…
Reference in New Issue
Block a user