We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3161a38 commit 72ccd12Copy full SHA for 72ccd12
src/test/scala/scala/xml/UtilityTest.scala
@@ -31,6 +31,25 @@ class UtilityTest {
31
assertEquals(2, y2 match { case <foo><toomuchws>a b b a</toomuchws></foo> => 2 })
32
}
33
34
+ @Test
35
+ def issue73AdjacentSpaceInFirst: Unit = {
36
+ val x = <div>{Text("My name is ")}{Text("Harry")}</div>
37
+ assertEquals(<div>My name is Harry</div>, Utility.trim(x))
38
+
39
+ }
40
41
42
+ def issue73AdjacentSpaceInSecond: Unit = {
43
+ val x = <div>{Text(" My name is")}{Text(" Harriet ")}</div>
44
+ assertEquals(<div>My name is Harriet</div>, Utility.trim(x))
45
46
47
48
+ def issue73IsolatedSpaceIsLost: Unit = {
49
+ val data = <data>{Text("a")}{Text(" ")}{Text("b")}</data>
50
+ assertEquals(<data>a b</data>, Utility.trim(data))
51
52
53
@Test
54
def aposEscaping: Unit = {
55
val z = <bar>''</bar>
0 commit comments