Does anybody know how to run the epydoc tests? running doctest directly
doesn't work due to needed libraries and I have absolutely no idea how
the code in test is to be called. 'python -m doctest
epydoc/test/__init__.py' therefore does not yield useful results. - A
'make test' for dummies like me would help...
The indentation gets corrupted by evolution, don't know why. Now the
patch as an attachment. Note to self: never c&p a patch again...
-Thomas
--- epydoc-3.0.1/epydoc/markup/restructuredtext.py 2008-01-28 19:15:33.000000000 +0100
+++ restructuredtext.py 2009-12-22 11:49:06.000000000 +0100
@@ -304,13 +304,14 @@
# Extract the first sentence.
for child in node:
if isinstance(child, docutils.nodes.Text):
- m = self._SUMMARY_RE.match(child.data)
- if m:
- summary_pieces.append(docutils.nodes.Text(m.group(1)))
- other = child.data[m.end():]
- if other and not other.isspace():
- self.other_docs = True
- break
+ if hasattr(child, 'data'):
+ m = self._SUMMARY_RE.match(child.data)
+ if m:
+ summary_pieces.append(docutils.nodes.Text(m.group(1)))
+ other = child.data[m.end():]
+ if other and not other.isspace():
+ self.other_docs = True
+ break
summary_pieces.append(child)
summary_doc = self.document.copy() # shallow copy