Commit 6119ee17cb5b750d6017a81d3cc72662b7c0406b
1 parent
8f637036
Qt compatibility fix
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/plugins/gallery.cpp
| ... | ... | @@ -365,7 +365,7 @@ class jsonGallery : public BinaryGallery |
| 365 | 365 | |
| 366 | 366 | void writeTemplate(const Template &t) |
| 367 | 367 | { |
| 368 | - const QByteArray json = QJsonDocument(QJsonObject::fromVariantMap(t.file.localMetadata())).toJson(QJsonDocument::Compact); | |
| 368 | + const QByteArray json = QJsonDocument(QJsonObject::fromVariantMap(t.file.localMetadata())).toJson().replace('\n', ""); | |
| 369 | 369 | if (!json.isEmpty()) { |
| 370 | 370 | gallery.write(json); |
| 371 | 371 | gallery.write("\n"); | ... | ... |