Thomas Hille - 2009-12-21

I suggest this patch instead, because it does not rely on an exception.

--- epydoc/markup/restructuredtext.py 2008-01-28 19:15:33.000000000 +0100
+++ /home/black/files/restructuredtext.py 2009-12-21 11:19:20.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