Skip to content

Commit cf44120

Browse files
committed
Fix text wrapping bug.
The text was moving to the next line unexpectedly due to the addition of width parameter in the output. The bug was fixed by removing the parameter. Now users would need to explicitly press `Enter` or `Return` to move to the next line.
1 parent 8ab0fe4 commit cf44120

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tkdesigner/figma/custom_elements.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ def to_code(self):
9191
anchor="nw",
9292
text="{self.text}",
9393
fill="{self.text_color}",
94-
font=("{self.font}", {int(self.font_size)} * -1),
95-
width={self.width}
94+
font=("{self.font}", {int(self.font_size)} * -1)
9695
)
9796
"""
9897

0 commit comments

Comments
 (0)