diff --git a/pandora/item/models.py b/pandora/item/models.py index c9ccb1ccb..024c71af6 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1226,12 +1226,13 @@ class Item(models.Model): s = q[0] for data in s.srt(offset): subtitles_added = True + value = data['value'].replace('\n', '
\n').replace('

\n', '
\n') annotation = Annotation( item=self, layer=layer, start=data['in'], end=data['out'], - value=data['value'], + value=value, user=user ) annotation.save()