yaml metadata rewrite: correct blank line

This commit is contained in:
Michael Pöhn committed 2017-07-04 11:51:08 +02:00
1 parent c46dec925e
commit fbd5e8772c
1 file changed
+1 -1
+1 -1
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)