1. jacobmason
  2. sphinx

Commits

Roland Meister  committed a50a09e

Use smartypants for toc entries.

  • Participants
  • Parent commits 97bd6d1
  • Branches default

Comments (0)

Files changed (1)

File sphinx/builders/epub.py

View file
 
 from sphinx.builders.html import StandaloneHTMLBuilder
 from sphinx.util.osutil import EEXIST
+from sphinx.util.smartypants import sphinx_smarty_pants as ssp
 
 
 # (Fragment) templates from which the metainfo files content.opf, toc.ncx,
             result.append({
                 'level': level,
                 'refuri': self.esc(refuri),
-                'text': self.esc(doctree.astext())
+                'text': ssp(self.esc(doctree.astext()))
             })
         else:
             for elem in doctree.children:
         self.refnodes.insert(0, {
             'level': 1,
             'refuri': self.esc(self.config.master_doc + '.html'),
-            'text': self.esc(self.env.titles[self.config.master_doc].astext())
+            'text': ssp(self.esc(
+                    self.env.titles[self.config.master_doc].astext()))
         })
         for file, text in reversed(self.config.epub_pre_files):
             self.refnodes.insert(0, {
                 'level': 1,
                 'refuri': self.esc(file + '.html'),
-                'text': self.esc(text)
+                'text': ssp(self.esc(text))
             })
         for file, text in self.config.epub_post_files:
             self.refnodes.append({
                 'level': 1,
                 'refuri': self.esc(file + '.html'),
-                'text': self.esc(text)
+                'text': ssp(self.esc(text))
             })