Fix text builder did not respect wide/fullwidth charactors for title line.

This commit is contained in:
Takayuki Shimizukawa
2013-02-05 23:57:26 +09:00
parent 5aaf533a39
commit 529e45a980
4 changed files with 56 additions and 1 deletions

View File

@@ -142,6 +142,13 @@ class TestApp(application.Sphinx):
temproot = tempdir / 'root'
test_root.copytree(temproot)
srcdir = temproot
elif srcdir == '(empty)':
tempdir = path(tempfile.mkdtemp())
self.cleanup_trees.append(tempdir)
temproot = tempdir / 'root'
temproot.makedirs()
(temproot / 'conf.py').write_text('')
srcdir = temproot
else:
srcdir = path(srcdir)
self.builddir = srcdir.joinpath('_build')