mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Ensure table is flushed right in RTL display
This commit is contained in:
parent
aa7bb57401
commit
e41d08be9e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user