Skip to content

Honor spacing option on stack element#3

Open
KennethLj wants to merge 1 commit intodannote:masterfrom
KennethLj:fix/stack-spacing
Open

Honor spacing option on stack element#3
KennethLj wants to merge 1 commit intodannote:masterfrom
KennethLj:fix/stack-spacing

Conversation

@KennethLj
Copy link
Copy Markdown

The Stack arm of convert_node decoded the spacing field from ExStack but never threaded it to StackElem, so spacing: "4pt" (or any value) passed via the Elixir DSL was silently dropped and Typst fell back to auto spacing.

Parse the value as Rel and pass it through with_spacing as Spacing::Rel.

The Stack arm of convert_node decoded the spacing field from
ExStack but never threaded it to StackElem, so spacing: "4pt"
(or any value) passed via the Elixir DSL was silently dropped
and Typst fell back to auto spacing.

Parse the value as Rel<Length> and pass it through with_spacing
as Spacing::Rel.
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.

1 participant