Update of /cvsroot/docstring/dps/dps
In directory usw-pr-cvs1:/tmp/cvs-serv3448/dps/dps
Modified Files:
nodes.py
Log Message:
- Removed endtags from .pformat() output.
- Reordered admonitions.
- Added 'attention' admonition.
Index: nodes.py
===================================================================
RCS file: /cvsroot/docstring/dps/dps/nodes.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** nodes.py 2001/09/12 03:47:12 1.9
--- nodes.py 2001/09/13 02:12:55 1.10
***************
*** 279,289 ****
def pformat(self, indent=' ', level=0):
! if self.children:
! return ''.join(['%s%s\n' % (indent * level, self.starttag())] +
[child.pformat(indent, level+1)
! for child in self.children]
! + ['%s%s\n' % (indent * level, self.endtag())])
! else:
! return '%s%s\n' % (indent * level, self.emptytag())
--- 279,285 ----
def pformat(self, indent=' ', level=0):
! return ''.join(['%s%s\n' % (indent * level, self.starttag())] +
[child.pformat(indent, level+1)
! for child in self.children])
***************
*** 471,481 ****
class literal_block(_TextElement): pass
class block_quote(_Element): pass
! class note(_Element): pass
! class tip(_Element): pass
! class warning(_Element): pass
! class error(_Element): pass
class caution(_Element): pass
class danger(_Element): pass
class important(_Element): pass
class comment(_TextElement): pass
class directive(_Element): pass
--- 467,478 ----
class literal_block(_TextElement): pass
class block_quote(_Element): pass
! class attention(_Element): pass
class caution(_Element): pass
class danger(_Element): pass
+ class error(_Element): pass
class important(_Element): pass
+ class note(_Element): pass
+ class tip(_Element): pass
+ class warning(_Element): pass
class comment(_TextElement): pass
class directive(_Element): pass
|