src/Pure/PIDE/command.scala
changeset 81406 4e9873629bff
parent 78913 ecb02f288636
child 81407 3796346f5bac
--- a/src/Pure/PIDE/command.scala	Fri Nov 08 16:57:48 2024 +0100
+++ b/src/Pure/PIDE/command.scala	Fri Nov 08 18:34:33 2024 +0100
@@ -388,8 +388,8 @@
 
   def text(source: String): Command = unparsed(source)
 
-  def rich_text(id: Document_ID.Command, results: Results, body: XML.Body): Command =
-    unparsed(XML.content(body), id = id, results = results,
+  def rich_text(body: XML.Body = Nil, results: Results = Results.empty): Command =
+    unparsed(XML.content(body), id = Document_ID.make(), results = results,
       markups = Markups.init(Markup_Tree.from_XML(body)))