From a134d21b79e0d6b36bbaf566b20cbf2adcb91c42 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 24 Jun 2024 20:10:03 +0100 Subject: [PATCH] Remove final newline from normalize_line_endings Database columns aren't files. This new line causes issues with `!= ""` checks. --- app/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/__init__.py b/app/utils/__init__.py index 38adc3c0..6c005392 100644 --- a/app/utils/__init__.py +++ b/app/utils/__init__.py @@ -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():