Skip to content

Commit

Permalink
fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
grizzly committed Dec 10, 2024
1 parent 1a366b6 commit aa8bd9f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/preview/acrostiche/0.5.0/acrostiche.typ
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
// Display the short version of the requested acronym.
// In most cases, the short version is the passed acronym itself.
// In the case of advanced dictionary definitions, the short version is defined with the 'short' and 'short-pl' keys.

context{
let acronyms = acros.get()
if acr in acronyms{
Expand All @@ -36,8 +35,15 @@
defs.at("short")
}else{acr}
}
}else{acr}
}else{acr}
}else{
if plural{
[#acr\s]
}
else{acr}
}
}else{
panic("Could not display the short version of an acronym not defined: "+acr)
}
}
}

Expand Down

0 comments on commit aa8bd9f

Please sign in to comment.