diff --git a/src/lib/appdata.py b/src/lib/appdata.py
index 1046c7bc..dd5bcbf0 100644
--- a/src/lib/appdata.py
+++ b/src/lib/appdata.py
@@ -83,6 +83,12 @@ def add_release(
releases.insert(0, release)
_fill_padding(release)
+ description = ElementTree.Element("description")
+ description.text = ''
+
+ release.append(description)
+ _fill_padding(description)
+
tree.write(
dst,
# XXX: lxml uses single quotes for doctype line if generated with
diff --git a/tests/test_appdata.py b/tests/test_appdata.py
index 507b98e9..ed773e59 100644
--- a/tests/test_appdata.py
+++ b/tests/test_appdata.py
@@ -46,7 +46,9 @@ def test_simple(self):
-
+
+
+
@@ -70,7 +72,9 @@ def test_mixed_indentation(self):
-
+
+
+
@@ -119,7 +123,9 @@ def test_comment(self):
-
+
+
+
@@ -137,14 +143,16 @@ def test_no_releases(self):
-
+
+
+
""".strip(),
)
def test_empty_releases(self):
- """No whitespace is generated between and ."""
+ """No whitespace is generated between and ."""
self._do_test(
"""
@@ -156,7 +164,9 @@ def test_empty_releases(self):
-
+
+
+
""".strip(),
@@ -186,7 +196,9 @@ def test_double_comment_within_root(self):
-->
First element needed
-
+
+
+
""".strip(),
@@ -219,7 +231,9 @@ def test_comment_outside_root(self):
-->
-
+
+
+
""".strip(),
@@ -238,7 +252,9 @@ def test_amp_as_amp(self):
🍦 & 🎂
-
+
+
+
""".strip(),
@@ -259,7 +275,9 @@ def test_amp_as_codepoint(self):
🦝 & 🍒
-
+
+
+
""".strip(),