You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems you're using image directive for SVG image. Please use figure directive instead.
.. image:: /_static/pix.svg
:align: right
Then you'll see right-aligned SVG image.
Input:
Image directive for SVG
-----------------------
.. image:: logo.svg
:align: right
text text text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text text text
Figure directive for SVG
------------------------
.. figure:: logo.svg
:align: right
text text text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text text text
Subject: Lack of float support for right-aligned SVG figures in HTML documents (maybe a missing CSS class)
Problem
float: right
property, allowing text to flow around the figure.Procedure to reproduce the problem
Error logs / results
Yields the following layout (PIX is the SVG image).
The corresponding HTML for the GIF:
And for the SVG:
So, the
figure
class seems missing.Expected results
The SVG figure should be in a
float: right
environment, as the GIF figure.Reproducible project / your project
figure
class.Environment info
The text was updated successfully, but these errors were encountered: