Skip to content

Commit f6f0060

Browse files
tfachadaquachpas
authored andcommitted
Fix 'has-<attribute>' checks
1 parent c2145fb commit f6f0060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

themes/default.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@
206206
}
207207

208208
#let __has_attribute(entry, key) = {
209-
let attr = entry.at(key, default: "")
210-
return attr != "" and attr != []
209+
let attr = entry.at(key, default: none)
210+
return attr != none and attr != []
211211
}
212212
#let has-short(entry) = __has_attribute(entry, "short")
213213
#let has-long(entry) = __has_attribute(entry, "long")

0 commit comments

Comments
 (0)