Update of /cvsroot/happydoc/HappyDoc3/happydoclib/parseinfo
In directory sc8-pr-cvs1:/tmp/cvs-serv24186/happydoclib/parseinfo
Modified Files:
suite.py
Log Message:
Do not add comments to the end of the docstring unless there are
comments to be added.
Index: suite.py
===================================================================
RCS file: /cvsroot/happydoc/HappyDoc3/happydoclib/parseinfo/suite.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** suite.py 1 Dec 2002 22:38:59 -0000 1.2
--- suite.py 7 Dec 2002 17:04:40 -0000 1.3
***************
*** 244,248 ****
def getDocString(self):
"Return any __doc__ string value found for the object."
! dstring = '%s\n\n%s' % (self._docstring, self._comments)
#print 'DOC STRING for %s is ' % self._name, dstring
return dstring
--- 244,251 ----
def getDocString(self):
"Return any __doc__ string value found for the object."
! if self._comments:
! dstring = '%s\n\n%s' % (self._docstring, self._comments)
! else:
! dstring = self._docstring
#print 'DOC STRING for %s is ' % self._name, dstring
return dstring
|