You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-07-10 12:19:27 -07:00
138df40082
* unify * license * add py27-epydoc git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@85833 d073be05-634f-4543-b044-5fe20cf6d1d6
33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
Index: epydoc/markup/restructuredtext.py
|
|
===================================================================
|
|
--- epydoc/markup/restructuredtext.py (revision 1812)
|
|
+++ epydoc/markup/restructuredtext.py (working copy)
|
|
@@ -304,10 +304,10 @@
|
|
# Extract the first sentence.
|
|
for child in node:
|
|
if isinstance(child, docutils.nodes.Text):
|
|
- m = self._SUMMARY_RE.match(child.data)
|
|
+ m = self._SUMMARY_RE.match(child)
|
|
if m:
|
|
summary_pieces.append(docutils.nodes.Text(m.group(1)))
|
|
- other = child.data[m.end():]
|
|
+ other = child[m.end():]
|
|
if other and not other.isspace():
|
|
self.other_docs = True
|
|
break
|
|
@@ -489,10 +489,10 @@
|
|
if (len(fbody[0]) > 0 and
|
|
isinstance(fbody[0][0], docutils.nodes.Text)):
|
|
child = fbody[0][0]
|
|
- if child.data[:1] in ':-':
|
|
- child.data = child.data[1:].lstrip()
|
|
- elif child.data[:2] in (' -', ' :'):
|
|
- child.data = child.data[2:].lstrip()
|
|
+ if child[:1] in ':-':
|
|
+ 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)
|