src/Pure/PIDE/protocol_message.scala
changeset 80871 b71a040ab128
parent 80870 9a7de3f320d8
child 80872 320bcbf34849
--- a/src/Pure/PIDE/protocol_message.scala	Thu Sep 12 14:24:36 2024 +0200
+++ b/src/Pure/PIDE/protocol_message.scala	Thu Sep 12 14:38:19 2024 +0200
@@ -60,12 +60,10 @@
 
   /* clean output */
 
+  def clean_output(xml: XML.Body): XML.Body =
+    XML.filter_elements(xml, remove = report_elements, expose = no_report_elements)
+
   def clean_output(msg: String): String =
-    try {
-      XML.content(
-        XML.filter_elements(YXML.parse_body(YXML.Source(msg)),
-          remove = report_elements,
-          expose = no_report_elements))
-    }
+    try { XML.content(clean_output(YXML.parse_body(YXML.Source(msg)))) }
     catch { case ERROR(_) => msg }
 }