mirror of
https://github.com/glanceapp/glance.git
synced 2025-02-22 05:10:54 +01:00
Preserve formatting of non-html extension widget content
This commit is contained in:
parent
495eaa0a37
commit
f89fc2ee1d
@ -273,6 +273,10 @@
|
||||
background-color: var(--color-separator);
|
||||
}
|
||||
|
||||
pre {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background-color: hsl(var(--bghs), calc(var(--scheme) (var(--scheme) var(--bgl) + 20%)));
|
||||
color: var(--color-text-highlight);
|
||||
|
@ -103,7 +103,7 @@ func convertExtensionContent(options extensionRequestOptions, content []byte, co
|
||||
|
||||
fallthrough
|
||||
default:
|
||||
return template.HTML(html.EscapeString(string(content)))
|
||||
return template.HTML("<pre>" + html.EscapeString(string(content)) + "</pre>")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user