chore(glossy): Improve code readability
The new function was already present, but unused.
This commit is contained in:
1 parent
ca57b15ccf
commit
3e0d7a9812
1 file changed
+2
-2
@@ -380,7 +380,7 @@
|
||||
// that with content, thus requiring a string here.
|
||||
// TODO: consider if we want to capitalize *before* this. First intuition is
|
||||
// "no".
|
||||
panic("Your cutsom format-term() function must return a string.")
|
||||
panic("Your custom format-term() function must return a string.")
|
||||
}
|
||||
|
||||
// Get the article, then capitalize either the article or term (if requested)
|
||||
@@ -390,7 +390,7 @@
|
||||
// Construct and return the final output
|
||||
// ---------------------------------------------------------------------------
|
||||
context {
|
||||
let linked-term = if term-links and query(__entry_label(key)).len() > 0 {
|
||||
let linked-term = if term-links and __has_glossary_entry(key) {
|
||||
link(__entry_label(key), term)
|
||||
} else {
|
||||
term
|
||||
|
||||
Reference in new issue
Block a user