Unify layout of vec and cases with mat#5934
Merged
laurmaedje merged 4 commits intotypst:mainfrom Mar 31, 2025
Merged
Conversation
Collaborator
|
Ideally, the warning should be different for all elements. For example, the "cell" terminology does not make much sense for |
9d07a97 to
6e545ed
Compare
Collaborator
Author
I've modified it to be consistent with the terminology in the docs: cell, element, and branch for |
1 task
Member
|
Thank you! |
hongjr03
pushed a commit
to hongjr03/typst
that referenced
this pull request
Apr 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5422.
The test
math-equation-fontalso needed to be updated due to this change.This PR also makes linebreaks be ignored in
vecandcasesnow (cf. #5459), matchingmat. A warning is now emitted when a linebreak is encountered in all three functions:The warning/hint can probably be improved. I'd appreciate any suggestions.
Only concern/note I have is that the hint in the above warning is kind of misleading with
mat, as a semicolon ends a row. Though even if the hint also suggested using semicolons, it wouldn't be very helpful I think in a scenario like: