inconsistent leading whitespace ...causes exception

philip_stephens avatarphilip_stephens created an issue

Sphinx version: 1.1.2

Python version: 2.7.3

Docutils version: 0.8.1 release

Jinja2 version: 2.6

Traceback (most recent call last): File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/sphinx/", line 189, in main, filenames) File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/sphinx/", line 204, in build self.builder.build_update() File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/sphinx/builders/", line 196, in build_update 'out of date' % len(to_build)) File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/sphinx/builders/", line 252, in build self.write(docnames, list(updated_docnames), method) File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/sphinx/ext/", line 270, in write self.test_doc(docname, doctree) File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/sphinx/ext/", line 329, in test_doc self.test_group(group, self.env.doc2path(docname, base=None)) File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/sphinx/ext/", line 379, in test_group filename, code[0].lineno) File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/", line 645, in get_doctest return DocTest(self.get_examples(string, name), globs, File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/", line 659, in get_examples return [x for x in self.parse(string, name) File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/", line 621, in parse self._parse_example(m, name, lineno) File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/", line 691, in _parse_example lineno + len(source_lines)) File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/", line 777, in _check_prefix (lineno+i+1, name, line)) ValueError: line 6 of the docstring for default has inconsistent leading whitespace: u"['South Dakota' 'Iowa' 'North Dakota' 'Missouri' 'Kansas' 'Nebraska']"

Comments (2)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.