#88 No text flow around figure with html output

closed-fixed
nobody
None
5
2009-09-18
2007-07-26
No

Using rst2html.py (Docutils 0.5 [snapshot 2007-06-07, r5227]) a figure element in the input rst file is translated to a <div> in the output html. This inhibites text from flowing around the figure by default (at least when viewer with firefox 2). This can be fixed in the stylesheet by adding e.g.

...

div.figure {
margin-left: 2em ;
margin-right: 2em;
float: right // <--- added
}

...

but the value for the float field obviously depends on the alignment of the figure (so a different CSS class would need to be added for each alignment)

Discussion

  • Günter Milde

    Günter Milde - 2009-09-18

    This is solved in the SVN (upcoming release 0.6).
    However, the `Test Document` shows that there is room for improvement: subsequent admonitions currently might overlap with the figure/legend.

     
  • Günter Milde

    Günter Milde - 2009-09-18
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks