def getWrappedHypertext(fileText, hypertextFileIndex, hypertextFiles):
 helpTextEnd = fileText.find('</p>')
 if (helpTextEnd < 0):
  print 'Failed to find the helpTextEnd in getWrappedHypertext in docwrap.'
 helpTextStart = fileText.find('<p>')
 if (helpTextStart < 0):
  print 'Failed to find the helpTextStart in getWrappedHypertext in docwrap.'
 helpText = fileText[helpTextStart:helpTextEnd]
 helpText = helpText.replace('&nbsp;', ' ')
 return ((fileText[:helpTextStart] + helpText) + fileText[helpTextEnd:])

def getWrappedHypertext ( fileText , hypertextFileIndex , hypertextFiles ) : helpTextEnd = fileText . find ( '</p>' ) if ( helpTextEnd < 0 ) : print 'Failed to find the helpTextEnd in getWrappedHypertext in docwrap.' helpTextStart = fileText . find ( '<p>' ) if ( helpTextStart < 0 ) : print 'Failed to find the helpTextStart in getWrappedHypertext in docwrap.' helpText = fileText [ helpTextStart : helpTextEnd ] helpText = helpText . replace ( '&nbsp;' , ' ' ) return ( ( fileText [ : helpTextStart ] + helpText ) + fileText [ helpTextEnd : ] )
get the wrapped pydoc hypertext help .