@@ -307,10 +307,10 @@ class XMLTest {
307307 @ UnitTest
308308 def escape =
309309 assertEquals("""
310- " Come, come again, whoever you are, come!
310+ " Come, come again, whoever you are, come!
311311Heathen, fire worshipper or idolatrous, come!
312312Come even if you broke your penitence a hundred times,
313- Ours is the portal of hope, come as you are."
313+ Ours is the portal of hope, come as you are."
314314 Mevlana Celaleddin Rumi""" , <! [CDATA [
315315 " Come, come again, whoever you are, come!
316316Heathen, fire worshipper or idolatrous, come!
@@ -473,6 +473,22 @@ Ours is the portal of hope, come as you are."
473473 assertHonorsIterableContract(<a a =" " y ={ null : String }/>.attributes)
474474 }
475475
476+ @ UnitTest
477+ def t5645 : Unit = {
478+
479+ val bar = " baz"
480+ val script = <script type =" text/javascript" >
481+ foo(" {bar}" );
482+ </script >
483+
484+ val expected =
485+ """ |<script type="text/javascript">
486+ | foo("baz");
487+ | </script>""" .stripMargin
488+
489+ assertEquals(expected, script.toString)
490+ }
491+
476492 @ UnitTest
477493 def t5843 : Unit = {
478494 val foo = scala.xml.Attribute (null , " foo" , " 1" , scala.xml.Null )
0 commit comments