We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c6763c commit b525b25Copy full SHA for b525b25
src/dotenv/main.py
@@ -420,10 +420,8 @@ def set_header(
420
logger.info("Ignoring empty header.")
421
return False, header
422
423
- header = header.replace("\n", " ")
424
- lines = textwrap.wrap(header, width=60)
425
- for i, line in enumerate(lines):
426
- lines[i] = f"# {line}\n"
+ lines = textwrap.wrap(header.replace("\n", " "), width=60)
+ lines = [f"# {line}\n" for line in lines]
427
header = "".join(lines)
428
dest.write(header)
429
0 commit comments