diff --git a/oml/item/models.py b/oml/item/models.py index c0c373f..7e12e83 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -774,6 +774,7 @@ class File(db.Model): first = unicodedata.normalize('NFD', author[0].upper())[0].upper() new_path = os.path.join(first, author, filename) new_path = new_path.replace('\x00', '') + new_path = new_path.replace('\n', ' ').replace(' ', ' ') new_path = ox.decode_html(new_path) if self.path == new_path: return