Only add newlines after keys

After comments they are included in the string
master
LEdoian 3 years ago
parent 26d1ad9c79
commit 049d21d939

@ -72,5 +72,5 @@ def dump_file(keys: list[AuthorizedKey | str], f: IO[str]) -> None:
for rec in keys: for rec in keys:
if isinstance(rec, AuthorizedKey): if isinstance(rec, AuthorizedKey):
rec = rec.to_string() rec = rec.to_string()
rec += '\n'
f.write(rec) f.write(rec)
f.write('\n')

Loading…
Cancel
Save