]> git.pld-linux.org Git - packages/epydoc.git/blob - epydoc-rst.patch
BR: rpmbuild(macros) >= 1.710
[packages/epydoc.git] / epydoc-rst.patch
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
4 @@ -304,10 +304,10 @@
5          # Extract the first sentence.
6          for child in node:
7              if isinstance(child, docutils.nodes.Text):
8 -                m = self._SUMMARY_RE.match(child.data)
9 +                m = self._SUMMARY_RE.match(child)
10                  if m:
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
16                      break
17 @@ -489,10 +489,10 @@
18              if (len(fbody[0]) > 0 and
19                  isinstance(fbody[0][0], docutils.nodes.Text)):
20                  child = fbody[0][0]
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()
29  
30              # Wrap the field body, and add a new field
31              self._add_field(tagname, arg, fbody)
This page took 0.09456 seconds and 3 git commands to generate.