Commit 6119ee17cb5b750d6017a81d3cc72662b7c0406b

Authored by Josh Klontz
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,7 +365,7 @@ class jsonGallery : public BinaryGallery
365 365
366 void writeTemplate(const Template &t) 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 if (!json.isEmpty()) { 369 if (!json.isEmpty()) {
370 gallery.write(json); 370 gallery.write(json);
371 gallery.write("\n"); 371 gallery.write("\n");