Skip to content

Commit

Permalink
fix default image alignment for RTL. fixes: https://bugzilla.wikimedi…
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lk3r committed Aug 31, 2011
1 parent 7a698fc commit 6e09825
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mwlib/rl/customflowables.py
Expand Up @@ -88,6 +88,8 @@ def __init__(self, figures, paragraphs, figure_margin=(0,0,0,0), rtl=False):
self.figure_margin = figure_margin
self.ps = paragraphs
self.figAlign = figures[0].align # fixme: all figures will be aligned like the first figure
if not self.figAlign:
self.figAlign = 'left' if rtl else 'right'
for f in self.fs:
if self.figAlign == 'left':
f.margin = pdfstyles.img_margins_float_left
Expand Down

0 comments on commit 6e09825

Please sign in to comment.