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