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:
parent
420e6e603b
commit
e9656ab8be
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user