Updated test cases documentation

This commit is contained in:
Bartek Kryza
2023-09-10 12:22:27 +02:00
parent 4a19c8ba23
commit bf29ceb2df
351 changed files with 34009 additions and 5201 deletions

View File

@@ -37,8 +37,10 @@ def main(argv):
tree = etree.fromstring(bytes(xml, encoding='utf8'))
# Add style color for <a> links
defs = tree.xpath('//svg:defs', namespaces={'svg':'http://www.w3.org/2000/svg'})[0]
style = etree.SubElement(defs, 'style')
defs = tree.xpath('//svg:defs', namespaces={'svg':'http://www.w3.org/2000/svg'})
if not defs:
continue
style = etree.SubElement(defs[0], 'style')
style.text = 'a:hover { text-decoration: underline; }'
style.set('type', 'text/css')