Skip to content

image not respecting alignement with png in .rst #1760

@12rambau

Description

@12rambau

I decided to open a follow-up of this thread as the bug seems to be fixed but fails on some more specific image type.

I try to align the content of my readme.rst file to use as a long description in my pypi release. using the .. raw:: directive is then impossible.

A common way to do it (that works on both sphinx and pypi) is:

.. image:: toto.png
   :align: center

It seems this is not taken into account when generating .png preview as shown in this gist where the .svg is correctly aligned and the .png is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    keepLabel to avoid being marked as stale

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions