Skip to content

Commit

Permalink
Add XML declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Honny1 committed Feb 16, 2024
1 parent 4b428d0 commit 86311ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build-scripts/compose_ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ def upgrade_ds_to_scap_13(ds):

def _store_ds(ds, output_13, output_12):
if output_12:
ds.write(output_12)
ds.write(output_12, xml_declaration=True)

ds_13 = upgrade_ds_to_scap_13(ds)
ds_13.write(output_13)
ds_13.write(output_13, xml_declaration=True)


def append_id_to_file_name(path, id_):
Expand Down
2 changes: 1 addition & 1 deletion ssg/build_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ def export_ocil_to_file(self, filename):
if root is None:
return
tree = ET.ElementTree(root)
tree.write(filename)
tree.write(filename, xml_declaration=True)


class Platform(XCCDFEntity):
Expand Down

0 comments on commit 86311ec

Please sign in to comment.