mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add comment
This commit is contained in:
parent
9f369d3f22
commit
6d877bb48b
1 changed files with 1 additions and 0 deletions
|
@ -2607,6 +2607,7 @@ def blockreplace(path,
|
|||
write_line_to_new_file = True
|
||||
|
||||
if linesep is None:
|
||||
# Auto-detect line separator
|
||||
if line.endswith('\r\n'):
|
||||
linesep = '\r\n'
|
||||
elif line.endswith('\n'):
|
||||
|
|
Loading…
Add table
Reference in a new issue