Fix icon display

This commit is contained in:
Christoph Hagen 2025-01-26 21:08:53 +01:00
parent 628f3ad520
commit 5937369223
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ extension ContentIcon {
extension ContentIcon {
static var svgString: String {
"<svg id=\(id) \(attributes)>\(content)</svg>"
"<svg id='\(id)' \(attributes)>\(content)</svg>"
}
static var usageString: String {

View File

@ -114,7 +114,7 @@ enum PageIcon: String, CaseIterable {
}
var svgString: String {
icon.content
icon.svgString
}
var id: String {

View File

@ -62,7 +62,7 @@ struct PageHeader: HtmlProducer {
}
var result = "<div style='display:none'>"
for icon in icons {
result += icon.icon.content
result += icon.icon.svgString
}
result += "</div>"
return result