1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-09-11 20:47:56 +03:00

Fix coding style again

This commit is contained in:
Guillaume Ayoub 2024-01-26 11:30:05 +01:00
parent 420e6e603b
commit e9656ab8be

View File

@ -462,7 +462,7 @@ class SVG:
node.text_bounding_box, ((x1, y1), (x2, y2)))
# Handle text anchor
if (node.tag == 'text' or node.tag == 'tspan') and text_anchor in ('middle', 'end'):
if TAGS.get(node.tag) == text and text_anchor in ('middle', 'end'):
group_id = self.stream.id
self.stream = original_streams.pop()
self.stream.push_state()