Skip to content

Commit

Permalink
Fix excess space before dot, change "-" to "--" (#5)
Browse files Browse the repository at this point in the history
* Fix excess space before dot, change "-" to "--"

* fix excess whitespace after reference

* remove more excess whitespace
  • Loading branch information
JuliDi authored Nov 10, 2023
1 parent 04a5005 commit a1ee80e
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions glossarium.typ
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,10 @@ SOFTWARE.*/
} else if (is_first or long == true) and entlong != [] and entlong != "" {
[ #entry.short#suffix (#emph(entlong))]
} else {
[#entry.short#suffix ]
[#entry.short#suffix]
}

[
#link(label(entry.key))[#textLink]
#label(__glossary_label_prefix + entry.key)
]
[#link(label(entry.key))[#textLink]#label(__glossary_label_prefix + entry.key)]
} else {
text(fill: red, "Glossary entry not found: " + key)
}
Expand Down Expand Up @@ -116,11 +113,12 @@ SOFTWARE.*/

{
set text(weight: 600)
if hasLong [
#emph(entry.short) - #entry.long
] else [
#emph(entry.short)
]
if hasLong {
emph(entry.short) + [ -- ] + entry.long
}
else {
emph(entry.short)
}
}
if hasDesc [: #desc ] else [. ]

Expand Down

0 comments on commit a1ee80e

Please sign in to comment.