diff --git a/flatpaker/actions/generate.py b/flatpaker/actions/generate.py index d0384a1..8f62d58 100644 --- a/flatpaker/actions/generate.py +++ b/flatpaker/actions/generate.py @@ -86,8 +86,8 @@ def add(table: tomlkit.items.Table, key: str, entry: object, # by `git`. sourcedir.mkdir(parents=True, exist_ok=True) with sourcedir.joinpath('.gitignore').open('w', encoding='utf-8') as f: - f.write('*') - f.write('!.gitignore') + f.write('*\n') + f.write('!.gitignore\n') with projectdir.joinpath('build.toml').open('w', encoding='utf-8') as f: tomlkit.dump(doc, f)