Ensure table is flushed right in RTL display

This commit is contained in:
Kovid Goyal 2016-01-03 11:27:16 +05:30
parent aa7bb57401
commit e41d08be9e

View File

@ -264,4 +264,5 @@ def mi_to_html(mi, field_list=None, default_author_link=None, use_roman_numbers=
classname(fieldl), html) for fieldl, html in ans] classname(fieldl), html) for fieldl, html in ans]
# print '\n'.join(ans) # print '\n'.join(ans)
direction = 'rtl' if rtl else 'ltr' direction = 'rtl' if rtl else 'ltr'
return u'<table class="fields" dir="%s">%s</table>'%(direction, u'\n'.join(ans)), comment_fields margin = 'left' if rtl else 'right'
return u'<table class="fields" style="direction: %s; margin-%s:auto">%s</table>'%(direction, margin, u'\n'.join(ans)), comment_fields