Update of /cvsroot/happydoc/HappyDoc/happydoclib/formatter
In directory usw-pr-cvs1:/tmp/cvs-serv10325/happydoclib/formatter
Modified Files:
xmlformatterbase.py
Log Message:
Changed reference to formatter_file so that it uses fileformatterbase instead.
Added extra arguments to writeText to make it consistent with new required arguments.
Index: xmlformatterbase.py
===================================================================
RCS file: /cvsroot/happydoc/HappyDoc/happydoclib/formatter/xmlformatterbase.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** xmlformatterbase.py 2001/10/24 21:27:35 1.1
--- xmlformatterbase.py 2002/02/03 21:50:11 1.2
***************
*** 69,73 ****
# initialize the base class
! apply(happydoclib.formatter.formatter_file.FileBasedFormatter.__init__,
(self, docset),
conf)
--- 69,73 ----
# initialize the base class
! apply(happydoclib.formatter.fileformatterbase.FileBasedFormatter.__init__,
(self, docset),
conf)
***************
*** 110,114 ****
def tag(self, name, output, attrs={}):
! """This method outputs opening tag with attributes. Method "endTag' should
be used to close the tag.
--- 110,114 ----
def tag(self, name, output, attrs={}):
! """This method outputs opening tag with attributes. Method 'endTag' should
be used to close the tag.
***************
*** 205,209 ****
! def writeText(self, text, output):
"""Outputs text to XML file.
--- 205,209 ----
! def writeText(self, text, output, textFormat, quote=1):
"""Outputs text to XML file.
***************
*** 213,216 ****
--- 213,224 ----
'output' -- output file object
+
+ 'textFormat' -- String identifying the format of 'text' so
+ the formatter can use a docstring converter to convert the
+ body of 'text' to the appropriate output format.
+
+ 'quote=1' -- Boolean option to control whether the text
+ should be quoted to escape special characters.
+
"""
self.writeRaw(self.getIndent()+text+'\n', output)
|