Sphinx converts apostrophes to smart quotes
Aostrophes (U+0027) '
in RST files are converted into left quotes and right quotes in the HTML and PDF created by sphinx.
Unicode Codepoint | Visual Representation | Hexadecimal Byte Representation | Name |
---|---|---|---|
U+2018 | ‘ | E2 80 98 | LEFT SINGLE QUOTATION MARK |
U+2019 | ’ | E2 80 99 | RIGHT SINGLE QUOTATION MARK |
This prevents a user from copying and using any chunks of configuration or pieces of code that use apostrophes.
This issue does not affect preformatted code blocks or spans of code marked by backtick quotes.