Having this in my .rst:

.. function:: applyDiffAndSave(self, diff, primary=False)
   Diffs are dicts in the format:

or
.. function:: applyDiffAndSave(self, diff, primary=False) Diffs are dicts in the format:

Causes the following traceback.

Adding the blank line as follows corrects this, but it would be nice if Sphinx is just logging an error as it does for other formatting problems.

.. function:: applyDiffAndSave(self, diff, primary=False)

   Diffs are dicts in the format:

# Sphinx version: 1.0.4
# Docutils version: 0.7 release
# Jinja2 version: 2.5.2
Traceback (most recent call last):
File "c:\python26\lib\site-packages\sphinx-1.0.4-py2.6.egg\sphinx\cmdline.py", line 173, in main
    app.build(force_all, filenames)
File "c:\python26\lib\site-packages\sphinx-1.0.4-py2.6.egg\sphinx\application.py", line 203, in build
    self.builder.build_all()
File "c:\python26\lib\site-packages\sphinx-1.0.4-py2.6.egg\sphinx\builders\__init__.py", line 161, in build_all
    self.build(None, summary='all source files', method='all')
File "c:\python26\lib\site-packages\sphinx-1.0.4-py2.6.egg\sphinx\builders\__init__.py", line 218, in build
    purple, length):
File "c:\python26\lib\site-packages\sphinx-1.0.4-py2.6.egg\sphinx\builders\__init__.py", line 120, in status_iterator
    for item in iterable:
File "c:\python26\lib\site-packages\sphinx-1.0.4-py2.6.egg\sphinx\environment.py", line 515, in update_generator
    self.read_doc(docname, app=app)
File "c:\python26\lib\site-packages\sphinx-1.0.4-py2.6.egg\sphinx\environment.py", line 676, in read_doc
    app.emit('doctree-read', doctree)
File "c:\python26\lib\site-packages\sphinx-1.0.4-py2.6.egg\sphinx\application.py", line 311, in emit
    results.append(callback(self, *args))
File "c:\python26\lib\site-packages\sphinx-1.0.4-py2.6.egg\sphinx\ext\viewcode.py", line 55, in doctree_read
    modname = signode['module']
File "c:\python26\lib\site-packages\docutils-0.7-py2.6.egg\docutils\nodes.py", line 534, in __getitem__
    return self.attributes[key]
KeyError: 'module'

Werner

--
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to