newlines in srt are explicit, fixes #634

This commit is contained in:
j 2012-03-03 10:53:12 +01:00
commit 159b6dc746
3 changed files with 7 additions and 3 deletions

View file

@ -1260,7 +1260,7 @@ class Item(models.Model):
return ox.srt.encode([{
'in': a.start,
'out': a.end,
'value': a.value
'value': a.value.replace('<br/>', '<br>').replace('<br>\n', '\n').replace('<br>', '\n')
} for a in self.annotations.filter(layer=layer).order_by('start', 'end', 'sortvalue')])
def delete_item(sender, **kwargs):