From: Arvin Schnell Date: Tue, 8 Feb 2011 17:03:34 +0000 (+0100) Subject: - don't write empty description X-Git-Tag: v0.1.3~504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a444165e73e8a055f5af899ce0b8f4788855760c;p=thirdparty%2Fsnapper.git - don't write empty description --- diff --git a/snapper/Snapshot.cc b/snapper/Snapshot.cc index b226fee9..0831a7b0 100644 --- a/snapper/Snapshot.cc +++ b/snapper/Snapshot.cc @@ -230,7 +230,7 @@ namespace snapper setChildValue(node, "date", datetime(date, true, true)); - if (type == SINGLE || type == PRE) + if ((type == SINGLE || type == PRE) && !description.empty()) setChildValue(node, "description", description); if (type == POST)