proper treatment of XML.Wrapped_Elem, e.g. Markup.class_parameter;
authorwenzelm
Tue, 05 Jan 2021 17:22:07 +0100
changeset 73059 523806d71dea
parent 73058 32618ae1b65d
child 73060 4b620e1cb1e9
proper treatment of XML.Wrapped_Elem, e.g. Markup.class_parameter;
src/Pure/Thy/presentation.scala
--- a/src/Pure/Thy/presentation.scala	Tue Jan 05 16:39:53 2021 +0100
+++ b/src/Pure/Thy/presentation.scala	Tue Jan 05 17:22:07 2021 +0100
@@ -98,6 +98,7 @@
 
     def html_body(xml_body: XML.Body): XML.Body =
       xml_body flatMap {
+        case XML.Wrapped_Elem(markup, _, body) => html_body(List(XML.Elem(markup, body)))
         case XML.Elem(Markup(Markup.ENTITY, props @ Markup.Kind(kind)), body) =>
           val body1 = html_body(body)
           if (elements.entity(kind)) {