Use \N instead of \n in ASS

This commit is contained in:
Star Brilliant 2013-09-16 23:16:16 +08:00
parent bb4898ae88
commit 2ca5ba6061

View File

@ -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: