Skip to content

Commit

Permalink
Fix removing extra newlines in database migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ranta committed Jan 17, 2025
1 parent 75c8277 commit 1cca6db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def clean_newlines(text: str | None) -> str:
if not text:
return text

return text.replace("<p><br></p>", "").replace("\r\n<p>&nbsp;</p>\r\n", "")
return text.replace("<p><br></p>", "").replace("\r\n<p>&nbsp;</p>\r\n", "").replace("<p>&nbsp;</p>", "")


def clean_reservation_unit_fields(apps, schema_editor):
Expand Down

0 comments on commit 1cca6db

Please sign in to comment.