1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

yaml metadata rewrite: correct blank line

This commit is contained in:
Michael Pöhn 2017-05-02 10:06:42 +02:00
parent c46dec925e
commit fbd5e8772c

View 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)