Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix delimiting within <choose> and <layout> for CSL #269

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

YDX-2147483647
Copy link

@YDX-2147483647 YDX-2147483647 commented Jan 22, 2025

There is a design trade-off:
The delimiter stack uses String instead of &str.
Using &str could eliminate many cloning, but at the cost of introducing complex lifetimes.
Considering that delimiters are typically short, I choose String.

Besides, I bump some *.cbor to pass tests. If this is not desired, I can reset the commit.

Fixes typst#180

A design trade-off:
The delimiter stack uses `String` instead of `&str`.
Using `&str` could eliminate many cloning, but at the cost of introducing complex lifetimes.
Considering that delimiters are typically short, I choose `String`.
@YDX-2147483647 YDX-2147483647 marked this pull request as ready for review January 22, 2025 16:58
@YDX-2147483647 YDX-2147483647 mentioned this pull request Jan 22, 2025
YDX-2147483647 added a commit to YDX-2147483647/citationberg that referenced this pull request Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant