You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code, the unit argument is set to r"\text{M-Units}", but Sphinx’s docstring extraction processes \t as a tab space. The documentation and the animation renders incorrectly as a result.
This is actually a pretty interesting problem. A simple workaround would be to rewrite the raw string to a normal one, while properly escaping the backslash.
I think that a proper fix, allowing our directive to read the content as a raw string (actually: preserving the raw string behavior in raw strings within the content passed to the directive) would require significantly more effort.
Details
manim/manim/mobject/text/numbers.py
Lines 60 to 80 in ee0501c
In the code, the
unit
argument is set tor"\text{M-Units}"
, but Sphinx’s docstring extraction processes\t
as a tab space. The documentation and the animation renders incorrectly as a result.Screenshot of the documentation issue (link):
The text was updated successfully, but these errors were encountered: