chore(glossy): rm trailing whitespace
This commit is contained in:
1 file changed
+6
-6
@@ -153,7 +153,7 @@
|
|||||||
//
|
//
|
||||||
// Parameters:
|
// Parameters:
|
||||||
// key (string): The glossary entry key
|
// key (string): The glossary entry key
|
||||||
//
|
//
|
||||||
// Returns:
|
// Returns:
|
||||||
// boolean: If the term is visible in the glossary (and the label is unique)
|
// boolean: If the term is visible in the glossary (and the label is unique)
|
||||||
//
|
//
|
||||||
@@ -345,7 +345,7 @@
|
|||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
context {
|
context {
|
||||||
let text = if term-links and __has_glossary_entry(key) {
|
let text = if term-links and __has_glossary_entry(key) {
|
||||||
link(label(key), term)
|
link(label(key), term)
|
||||||
} else {
|
} else {
|
||||||
term
|
term
|
||||||
}
|
}
|
||||||
@@ -384,7 +384,7 @@
|
|||||||
})
|
})
|
||||||
.dedup(key: ((loc, page)) => page) // deduplicate by page
|
.dedup(key: ((loc, page)) => page) // deduplicate by page
|
||||||
.map(((loc, page)) => link(loc, page)) // create links
|
.map(((loc, page)) => link(loc, page)) // create links
|
||||||
.join(", ")
|
.join(", ")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initializes the glossary system and sets up term reference handling.
|
// Initializes the glossary system and sets up term reference handling.
|
||||||
@@ -559,11 +559,11 @@
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add non-empty groups to output
|
// Add non-empty groups to output
|
||||||
if current_entries.len() > 0 {
|
if current_entries.len() > 0 {
|
||||||
group = if group == none { "" } else { group }
|
group = if group == none { "" } else { group }
|
||||||
|
|
||||||
// sort entries by case insensitivity if requested
|
// sort entries by case insensitivity if requested
|
||||||
let sorted_entries = current_entries
|
let sorted_entries = current_entries
|
||||||
// 1. create array of tuples with (lower [if ignore-case], entry)
|
// 1. create array of tuples with (lower [if ignore-case], entry)
|
||||||
@@ -572,7 +572,7 @@
|
|||||||
.sorted(key: t => t.first())
|
.sorted(key: t => t.first())
|
||||||
// 3. strip away the tuple's first element, leaving an array of entries
|
// 3. strip away the tuple's first element, leaving an array of entries
|
||||||
.map(t => t.last())
|
.map(t => t.last())
|
||||||
|
|
||||||
// add entries to this group's output map
|
// add entries to this group's output map
|
||||||
output.insert(group, sorted_entries)
|
output.insert(group, sorted_entries)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user