mirror of
https://github.com/Steffo99/emblematic.git
synced 2024-11-21 22:34:19 +00:00
Make sure all icon attributes are str
s
This commit is contained in:
parent
2f46226ea7
commit
8a0355c4a0
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ def compose_basic(background: bs4.Tag, icon: bs4.Tag, width: int, height: int) -
|
||||||
icon.attrs["width"] = "63%"
|
icon.attrs["width"] = "63%"
|
||||||
icon.attrs["height"] = "63%"
|
icon.attrs["height"] = "63%"
|
||||||
icon.attrs["preserveAspectRatio"] = "xMidYMid meet"
|
icon.attrs["preserveAspectRatio"] = "xMidYMid meet"
|
||||||
icon.attrs["x"] = width * 0.37 / 2
|
icon.attrs["x"] = str(width * 0.37 / 2)
|
||||||
icon.attrs["y"] = height * 0.37 / 2
|
icon.attrs["y"] = str(height * 0.37 / 2)
|
||||||
|
|
||||||
doc = bs4.BeautifulSoup(f"""
|
doc = bs4.BeautifulSoup(f"""
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {width} {height}">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {width} {height}">
|
||||||
|
|
Loading…
Reference in a new issue