diff options
-rw-r--r-- | src/library/scala/xml/parsing/FactoryAdapter.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library/scala/xml/parsing/FactoryAdapter.scala b/src/library/scala/xml/parsing/FactoryAdapter.scala index 67e6fc8ad9..d063b74983 100644 --- a/src/library/scala/xml/parsing/FactoryAdapter.scala +++ b/src/library/scala/xml/parsing/FactoryAdapter.scala @@ -165,9 +165,8 @@ abstract class FactoryAdapter extends DefaultHandler() { def captureText(): Unit = { if (capture) { val text = buffer.toString() - if (text.length() > 0 && !text.equals(" ")) { + if (text.length() > 0) hStack.push(createText(text)) - } } buffer.setLength(0) } |