From 6119ee17cb5b750d6017a81d3cc72662b7c0406b Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 17 Jun 2014 17:54:01 -0400 Subject: [PATCH] Qt compatibility fix --- openbr/plugins/gallery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index 58de606..ea3cbd6 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -365,7 +365,7 @@ class jsonGallery : public BinaryGallery void writeTemplate(const Template &t) { - const QByteArray json = QJsonDocument(QJsonObject::fromVariantMap(t.file.localMetadata())).toJson(QJsonDocument::Compact); + const QByteArray json = QJsonDocument(QJsonObject::fromVariantMap(t.file.localMetadata())).toJson().replace('\n', ""); if (!json.isEmpty()) { gallery.write(json); gallery.write("\n"); -- libgit2 0.21.4