From 2ca5ba60617a872770b0017339d26279f56fccbb Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Mon, 16 Sep 2013 23:16:16 +0800 Subject: [PATCH] Use \N instead of \n in ASS --- convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.py b/convert.py index 35ddc97..9991a4d 100755 --- a/convert.py +++ b/convert.py @@ -60,7 +60,7 @@ def MarkCommentRow(rows, c, row): def WriteComment(f, c, row, width, height, bottomReserved, fontsize, lifetime): - text = c[3].replace('\\', '\\\\').replace('\n', '\\n') + text = c[3].replace('\\', '\\\\').replace('\n', '\\N') if c[4] == 1: styles = '{\\a2}{\\pos(%(halfwidth)s, %(row)s)}' % {'halfwidth': round(width/2), 'row': row} elif c[4] == 2: