src/Pure/PIDE/command.scala
changeset 49466 99ed1f422635
parent 49445 638cefe3ee99
child 49493 db58490a68ac
equal deleted inserted replaced
49465:76ecbc7f3683 49466:99ed1f422635
   110 
   110 
   111   def unparsed(source: String): Command = unparsed(Document.no_id, source, Markup_Tree.empty)
   111   def unparsed(source: String): Command = unparsed(Document.no_id, source, Markup_Tree.empty)
   112 
   112 
   113   def rich_text(id: Document.Command_ID, body: XML.Body): Command =
   113   def rich_text(id: Document.Command_ID, body: XML.Body): Command =
   114   {
   114   {
   115     val (text, markup) = XML.content_markup(body)
   115     val text = XML.content(body)
       
   116     val markup = Markup_Tree.from_XML(body)
   116     unparsed(id, text, markup)
   117     unparsed(id, text, markup)
   117   }
   118   }
   118 
   119 
   119 
   120 
   120   /* perspective */
   121   /* perspective */