From 57ee3c8988dfdad0b0a8c34335872d547d00a616 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 30 Dec 2019 09:51:27 +0000 Subject: [PATCH] Improve entity handling in the sxml module This is useful as stexi->shtml uses *ENTITY* so handling this here means that the HTML output for texinfo is better. --- guix-data-service/web/sxml.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guix-data-service/web/sxml.scm b/guix-data-service/web/sxml.scm index 468b81f..5b478e0 100644 --- a/guix-data-service/web/sxml.scm +++ b/guix-data-service/web/sxml.scm @@ -359,6 +359,8 @@ list ATTRS and the child nodes in BODY." ;; Unescaped, raw HTML output (('raw html) (display html port)) + (('*ENTITY* name) + (simple-format port "&~A;" name)) (((? symbol? tag) ('@ attrs ...) body ...) (element->html tag attrs body port)) (((? symbol? tag) body ...)