[py-svn] r34596 - py/dist/py/rst

guido at codespeak.net guido at codespeak.net
Tue Nov 14 13:56:23 CET 2006


Author: guido
Date: Tue Nov 14 13:56:22 2006
New Revision: 34596

Modified:
   py/dist/py/rst/rst.py
Log:
Fixed problem with finding the tree root, removed debug prints.


Modified: py/dist/py/rst/rst.py
==============================================================================
--- py/dist/py/rst/rst.py	(original)
+++ py/dist/py/rst/rst.py	Tue Nov 14 13:56:22 2006
@@ -232,7 +232,6 @@
 
     def text(self):
         text = self.escape(self._text).split('\n')
-        print text
         for i, line in enumerate(text):
             if line.strip():
                 text[i] = '  %s' % (line,)
@@ -273,6 +272,7 @@
         for child in self.children:
             if isinstance(child, AbstractText):
                 p = Paragraph(child, indent=indent)
+                p.parent = self.parent
                 txt.append(p.text())
             else:
                 txt.append(child.text())
@@ -282,7 +282,6 @@
             ret.append('\n')
         item_char = self.item_chars[idepth]
         ret += [indent[2:], item_char, ' ', txt[len(indent):]]
-        print repr(ret)
         return ''.join(ret)
 
     def get_indent_depth(self):


More information about the py-svn mailing list