Skip to content

smart quotes getting wrong in latex (at least with list of strings via autoattribute) #3472

@jfbu

Description

@jfbu

Subject: when compiling Sphinx's own docs to LaTeX, one finds this mark-up

= {[}'image/svg+xml', `image/png', `image/gif', `image/jpeg'{]}

in the Builders section. This comes from an

   .. autoattribute:: supported_image_types

and the class variable in the Python code is

    supported_image_types = ['image/svg+xml', 'image/png',
                             'image/gif', 'image/jpeg']

The first quote in the LaTeX output is wrong, it should be a left quote. This does not show up so much with the used fonts for the doc, but if one changes fonts it is clearer:

capture d ecran 2017-02-26 a 23 11 20

HTML build uses (right) tick both on opening and closing for all strings '.

Environment info

  • OS: mac os x 10.9.5
  • Python version: 3.5.2
  • Sphinx version: 1.5.2, also on master branch.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions