From d9ac05245bf3bf7869cd13169404e110695f9985 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 25 Feb 2012 14:27:24 +0530 Subject: [PATCH] add
to subtitles on import --- pandora/item/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index c9ccb1cc..024c71af 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()