chiark / gitweb /
yaml metadata rewrite: correct blank line
authorMichael Pöhn <michael.poehn@fsfe.org>
Tue, 2 May 2017 08:06:42 +0000 (10:06 +0200)
committerMichael Pöhn <michael.poehn@fsfe.org>
Tue, 4 Jul 2017 09:51:08 +0000 (11:51 +0200)
fdroidserver/metadata.py

index cd16724a29b6d83dbed3bf00c6d2ffe14468e7db..5c1c52e433bb0e0e700a56496734434ea9952435 100644 (file)
@@ -1011,7 +1011,7 @@ def write_yaml(mf, app):
                     # inserting empty lines is not supported so we add a
                     # bogus comment and over-write its value
                     preformated.yaml_set_comment_before_after_key(f, 'bogus')
-                    preformated.ca.items[f][1][0].value = '\n'
+                    preformated.ca.items[f][1][-1].value = '\n'
 
     ruamel.yaml.round_trip_dump(preformated, mf, indent=4, block_seq_indent=2)