src/Pure/GUI/gui.scala
changeset 59671 9715eb8e9408
parent 59286 ac74eedb910a
child 60033 9a1d40876e9f
--- a/src/Pure/GUI/gui.scala	Tue Mar 10 13:55:10 2015 +0100
+++ b/src/Pure/GUI/gui.scala	Tue Mar 10 20:12:30 2015 +0100
@@ -80,9 +80,10 @@
 
   /* simple dialogs */
 
-  def scrollable_text(txt: String, width: Int = 60, height: Int = 20, editable: Boolean = false)
+  def scrollable_text(raw_txt: String, width: Int = 60, height: Int = 20, editable: Boolean = false)
     : ScrollPane =
   {
+    val txt = Output.clean_yxml(raw_txt)
     val text = new TextArea(txt)
     if (width > 0) text.columns = width
     if (height > 0 && split_lines(txt).length > height) text.rows = height