header.text = f"{month} {date.day}, {date.year}"
body = etree.Element('p')
- a = etree.SubElement(body, 'a', attrib={'href': f'relnotes/{previous_version}'})
+ a = etree.SubElement(
+ body, 'a', attrib={'href': f'relnotes/{previous_version}.html'})
a.text = f"Mesa {previous_version}"
if is_point:
a.tail = " is released. This is a bug fix release."
tree = html.parse(f)
li = etree.Element('li')
- a = etree.SubElement(li, 'a', href=f'relnotes/{previous_version}')
+ a = etree.SubElement(li, 'a', href=f'relnotes/{previous_version}.html')
a.text = f'{previous_version} release notes'
ul = tree.xpath('.//ul')[0]