Lubomir Rintel 9e49c4
From b293e11299566005b5d918c735bdf9c0ab5ded6f Mon Sep 17 00:00:00 2001
Lubomir Rintel 9e49c4
From: Lubomir Rintel <lkundrak@v3.sk>
Lubomir Rintel 9e49c4
Date: Thu, 1 Apr 2010 20:23:12 +0200
Lubomir Rintel 9e49c4
Subject: [PATCH] Fix restructuredtext formatting for python-docutils-0.6
Lubomir Rintel 9e49c4
Lubomir Rintel 9e49c4
---
Lubomir Rintel 9e49c4
 epydoc/markup/restructuredtext.py |    4 ++--
Lubomir Rintel 9e49c4
 1 files changed, 2 insertions(+), 2 deletions(-)
Lubomir Rintel 9e49c4
Lubomir Rintel 9e49c4
diff --git a/epydoc/markup/restructuredtext.py b/epydoc/markup/restructuredtext.py
Lubomir Rintel 9e49c4
index 8b6ac04..4726cb5 100644
Lubomir Rintel 9e49c4
--- a/epydoc/markup/restructuredtext.py
Lubomir Rintel 9e49c4
+++ b/epydoc/markup/restructuredtext.py
Lubomir Rintel 9e49c4
@@ -304,10 +304,10 @@ class _SummaryExtractor(NodeVisitor):
Lubomir Rintel 9e49c4
         # Extract the first sentence.
Lubomir Rintel 9e49c4
         for child in node:
Lubomir Rintel 9e49c4
             if isinstance(child, docutils.nodes.Text):
Lubomir Rintel 9e49c4
-                m = self._SUMMARY_RE.match(child.data)
Lubomir Rintel 9e49c4
+                m = self._SUMMARY_RE.match(child)
Lubomir Rintel 9e49c4
                 if m:
Lubomir Rintel 9e49c4
                     summary_pieces.append(docutils.nodes.Text(m.group(1)))
Lubomir Rintel 9e49c4
-                    other = child.data[m.end():]
Lubomir Rintel 9e49c4
+                    other = child[m.end():]
Lubomir Rintel 9e49c4
                     if other and not other.isspace():
Lubomir Rintel 9e49c4
                         self.other_docs = True
Lubomir Rintel 9e49c4
                     break
Lubomir Rintel 9e49c4
-- 
Lubomir Rintel 9e49c4
1.7.0.1
Lubomir Rintel 9e49c4