Skip to content

Commit 317935b

Browse files
authored
Fix broken line spacing in Paragraph (#1086)
The line_spacing kwarg was missing when creating Text mobjects; this adds it.
1 parent 8d55eb3 commit 317935b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manim/mobject/svg/text_mobject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def __init__(self, *text, line_spacing=-1, alignment=None, **config):
442442
VGroup.__init__(self, **config)
443443

444444
lines_str = "\n".join(list(text))
445-
self.lines_text = Text(lines_str, **config)
445+
self.lines_text = Text(lines_str, line_spacing=line_spacing, **config)
446446
lines_str_list = lines_str.split("\n")
447447
self.chars = self.gen_chars(lines_str_list)
448448

0 commit comments

Comments
 (0)