]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- don't write empty description
authorArvin Schnell <aschnell@suse.de>
Tue, 8 Feb 2011 17:03:34 +0000 (18:03 +0100)
committerArvin Schnell <aschnell@suse.de>
Tue, 8 Feb 2011 17:03:34 +0000 (18:03 +0100)
snapper/Snapshot.cc

index b226fee94a7be564ee19f91b08ec3a20b1a7d0b5..0831a7b039d1e7bdfef697255aa08d4a38f48e53 100644 (file)
@@ -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)