Skip to content

Commit

Permalink
mark: Support sep
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Dec 20, 2023
1 parent 82cd1db commit 07c18b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mark.typ
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
}
let distance = 0
let drawables = ()
for style in styles {
for (i, style) in styles.enumerate() {
if style.symbol == none {
continue
}
Expand Down Expand Up @@ -179,6 +179,9 @@
)
drawables += mark.drawables
distance += mark.length
if i + 1 < styles.len() {
distance += style.sep
}
}

return (
Expand Down

0 comments on commit 07c18b1

Please sign in to comment.