mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-09 17:13:45 +01:00
Remove final newline from normalize_line_endings
Database columns aren't files. This new line causes issues with `!= ""` checks.
This commit is contained in:
parent
d0fc83c00c
commit
a134d21b79
@ -56,7 +56,7 @@ def normalize_line_endings(value: Optional[str]) -> Optional[str]:
|
||||
if value is None:
|
||||
return None
|
||||
|
||||
return value.replace("\r\n", "\n").strip() + "\n"
|
||||
return value.replace("\r\n", "\n").strip()
|
||||
|
||||
|
||||
def should_return_json():
|
||||
|
Loading…
Reference in New Issue
Block a user