sidekick: unformatted content, notably without newlines;
authorwenzelm
Fri, 07 May 2010 22:38:13 +0200
changeset 36737 17fe629da595
parent 36736 93753a8c9550
child 36738 dce592144219
sidekick: unformatted content, notably without newlines;
src/Tools/jEdit/src/jedit/isabelle_sidekick.scala
--- a/src/Tools/jEdit/src/jedit/isabelle_sidekick.scala	Fri May 07 22:27:28 2010 +0200
+++ b/src/Tools/jEdit/src/jedit/isabelle_sidekick.scala	Fri May 07 22:38:13 2010 +0200
@@ -47,7 +47,7 @@
         for ((command, command_start) <- document.command_range(0) if !stopped) {
           root.add(document.current_state(command).get.markup_root.swing_tree((node: Markup_Node) =>
               {
-                val content = command.source(node.start, node.stop)
+                val content = Pretty.str_of(List(XML.Text(command.source(node.start, node.stop))))
                 val id = command.id
 
                 new DefaultMutableTreeNode(new IAsset {