Skip to content

fix(tex): match substrings_to_isolate across newlines#4874

Closed
Chessing234 wants to merge 1 commit into
ManimCommunity:mainfrom
Chessing234:fix/4617-substrings-dotall
Closed

fix(tex): match substrings_to_isolate across newlines#4874
Chessing234 wants to merge 1 commit into
ManimCommunity:mainfrom
Chessing234:fix/4617-substrings-dotall

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • Pass re.DOTALL to _locate_first_match so . spans newlines
  • Restores substrings_to_isolate / get_part_by_tex for multi-line strings

Fixes #4617

Test plan

  • pytest tests/module/mobject/text/test_texmobject.py::test_locate_first_match_multiline_substring

Made with Cursor

Use re.DOTALL in _locate_first_match so substrings on later lines of
multi-line Tex/MathTex strings are isolated again.

Fixes ManimCommunity#4617

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

substrings_to_isolate no longer works on multi-line strings

2 participants