Skip to content

Commit

Permalink
Merge pull request typst#1 from caemor/caemor-patch-1
Browse files Browse the repository at this point in the history
Add Array-Check for print-index
  • Loading branch information
Grisely committed Jan 6, 2024
2 parents 2ad0e51 + 5c58db0 commit ed54c29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/preview/acrostiche/0.3.0/acrostiche.typ
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,15 @@

// print the acronyms
for acr in acr-list{
let acr-long = acronyms.at(acr)
let acr-long = if type(acr-long) == array {
acr-long.at(0)
} else {acr-long}
table(
columns: (20%,80%),
stroke:none,
inset: 0pt,
[*#acr#delimiter*], [#acronyms.at(acr).at(0)\ ]
[*#acr#delimiter*], [#acr-long\ ]
)
}

Expand Down

0 comments on commit ed54c29

Please sign in to comment.