Skip to content

Commit

Permalink
Handle extra whitespace in svg element's style value (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
markromanmiller authored Mar 27, 2021
1 parent 71a05e8 commit b460712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manim/mobject/svg/style_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ def cascade_element_style(
try:
key, value = style_spec.split(":")
except ValueError as e:
if not style_spec:
if not style_spec.strip():
# there was just a stray semicolon at the end, producing an emptystring
pass
else:
raise e
else:
style[key] = value
style[key.strip()] = value.strip()

return style

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b460712

Please sign in to comment.