1 diff -dur epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py epydoc-3.0.1/epydoc/markup/restructuredtext.py
2 --- epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py 2008-01-28 18:15:32.000000000 +0100
3 +++ epydoc-3.0.1/epydoc/markup/restructuredtext.py 2011-05-08 13:33:08.000000000 +0200
5 # Extract the first sentence.
7 if isinstance(child, docutils.nodes.Text):
8 - m = self._SUMMARY_RE.match(child.data)
9 + m = self._SUMMARY_RE.match(child)
11 summary_pieces.append(docutils.nodes.Text(m.group(1)))
12 - other = child.data[m.end():]
13 + other = child[m.end():]
14 if other and not other.isspace():
15 self.other_docs = True
18 if (len(fbody[0]) > 0 and
19 isinstance(fbody[0][0], docutils.nodes.Text)):
21 - if child.data[:1] in ':-':
22 - child.data = child.data[1:].lstrip()
23 - elif child.data[:2] in (' -', ' :'):
24 - child.data = child.data[2:].lstrip()
25 + if child[:1] in ':-':
26 + child = child[1:].lstrip()
27 + elif child[:2] in (' -', ' :'):
28 + child = child[2:].lstrip()
30 # Wrap the field body, and add a new field
31 self._add_field(tagname, arg, fbody)