'Returns the first paragraph of text for a given function
Fixes up some weird double spacing and newlines.
Args:
section: A section of parsed HTML that represents a function
definition
Returns:
First paragraph found with text'

def parse_for_first_paragraph(self, section):

    paragraphs = section.find_all('p')
    for paragraph in paragraphs:
        if paragraph.text:
            return self._format_output(paragraph.text)
    return ''
