Skip to content

Commit 4a28d3d

Browse files
committed
Append a newline on every content
The current code simply concatenates all contents into a single line of QL code, making it invalid.
1 parent 7ddebfc commit 4a28d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeql_bundle/helpers/bundle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def bundle_stdlib_pack(pack: ResolvedCodeQLPack):
459459
f"import {customization_pack.get_module_name()}.Customizations"
460460
)
461461
with pack_copy.get_customizations_module_path().open("w") as fd:
462-
fd.writelines(contents)
462+
fd.writelines(map(lambda content: content + "\n", contents))
463463

464464
# Remove the original target library pack
465465
logging.debug(

0 commit comments

Comments
 (0)