Skip to content

Commit d9e59e2

Browse files
committed
Fixed extra newline of the generated licenses from Windows OS
The generated licenses contains extra line break for each line in Windows OS. Adding the `newline='\n'` to fix the issue. Signed-off-by: Chin Yeung Li <[email protected]>
1 parent ef6773c commit d9e59e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributecode/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ def dump_lic(self, location, license_dict):
10971097
license_name, license_context, license_url = license_dict[lic_key]
10981098
license_info = (lic_key, license_name, license_context, license_url)
10991099
license_key_name_context_url.append(license_info)
1100-
with io.open(license_path, mode='w', encoding='utf-8') as lic:
1100+
with io.open(license_path, mode='w', encoding='utf-8', newline='\n') as lic:
11011101
lic.write(license_context)
11021102
except:
11031103
pass

0 commit comments

Comments
 (0)