@@ -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!
@@ -492,6 +492,22 @@ Ours is the portal of hope, come as you are."
492492 assertTrue(g)
493493 }
494494
495+ @ UnitTest
496+ def t5645 : Unit = {
497+
498+ val bar = " baz"
499+ val script = <script type =" text/javascript" >
500+ foo(" {bar}" );
501+ </script >
502+
503+ val expected =
504+ """ |<script type="text/javascript">
505+ | foo("baz");
506+ | </script>""" .stripMargin
507+
508+ assertEquals(expected, script.toString)
509+ }
510+
495511 @ UnitTest
496512 def t5843 : Unit = {
497513 val foo = scala.xml.Attribute (null , " foo" , " 1" , scala.xml.Null )
0 commit comments