Index: epydoc/markup/restructuredtext.py
===================================================================
--- epydoc/markup/restructuredtext.py (revision 1812)
+++ epydoc/markup/restructuredtext.py (working copy)
# Extract the first sentence.
if isinstance(child, docutils.nodes.Text):
- m = self._SUMMARY_RE.match(child.data)
+ m = self._SUMMARY_RE.match(child)
summary_pieces.append(docutils.nodes.Text(m.group(1)))
- other = child.data[m.end():]
+ other = child[m.end():]
if other and not other.isspace():
if (len(fbody[0]) > 0 and
isinstance(fbody[0][0], docutils.nodes.Text)):
- if child.data[:1] in ':-':
- child.data = child.data[1:].lstrip()
- elif child.data[:2] in (' -', ' :'):
- child.data = child.data[2:].lstrip()
+ child = child[1:].lstrip()
+ elif child[:2] in (' -', ' :'):
+ child = child[2:].lstrip()
# Wrap the field body, and add a new field
self._add_field(tagname, arg, fbody)