

def generate_release_notes(lines):
    '\n    Generates the release notes page from the lines of restructuredText in the\n    changelog.  This converts the RST to HTML and reformats it a bit to fit in\n    the content area of the web site.\n    '
    header = textwrap.dedent('\n    <h1>Hubble Space Telescope <br /><dtml-var title></h1>\n\n    <dtml-if "(_.has_key(\'navigation\')) and (navigation.isViewable(REQUEST))">\n      <dtml-var navigation>\n    </dtml-if>\n\n    <div id="info">\n    <article>\n\n    <h2 class="title">Changelog</h2>\n    ').lstrip()
    footer = textwrap.dedent('\n    </article>\n    </div>\n    ')
    parts = publish_parts('\n'.join(lines), writer=_ReleaseNotesWriter())
    content = parts['html_body']
    content = content.splitlines()
    content = '\n'.join(content[2:(- 1)])
    return ((header + content) + footer)

dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/_release.py generate_release_notes/original