Adjust alignment
This commit is contained in:
parent
e80c8965e1
commit
05fa2ef40c
@ -62,7 +62,7 @@ def MarkCommentRow(rows, c, row):
|
|||||||
def WriteComment(f, c, row, width, height, bottomReserved, fontsize, lifetime):
|
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:
|
if c[4] == 1:
|
||||||
styles = '{\\an7}{\\pos(%(halfwidth)s, %(row)s)}' % {'halfwidth': round(width/2), 'row': row}
|
styles = '{\\an8}{\\pos(%(halfwidth)s, %(row)s)}' % {'halfwidth': round(width/2), 'row': row}
|
||||||
elif c[4] == 2:
|
elif c[4] == 2:
|
||||||
styles = '{\\an2}{\\pos(%(halfwidth)s, %(row)s)}' % {'halfwidth': round(width/2), 'row': ConvertType2(row, height, bottomReserved)}
|
styles = '{\\an2}{\\pos(%(halfwidth)s, %(row)s)}' % {'halfwidth': round(width/2), 'row': ConvertType2(row, height, bottomReserved)}
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user