From 9e0618ba29426ea5cb12caf881ce892a1d2365b9 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Wed, 16 Jun 2010 19:59:49 +0000 Subject: fixed anonymous function in xhtml. no review. --- src/library/scala/xml/Xhtml.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/scala/xml/Xhtml.scala b/src/library/scala/xml/Xhtml.scala index 4dc01a5b45..6730548b73 100644 --- a/src/library/scala/xml/Xhtml.scala +++ b/src/library/scala/xml/Xhtml.scala @@ -13,7 +13,7 @@ object Xhtml * * @param node the node */ - def toXhtml(node: Node): String = sbToString(toXhtml(x = node, sb = _)) + def toXhtml(node: Node): String = sbToString(sb => toXhtml(x = node, sb = sb)) /** * Convenience function: amounts to calling toXhtml(node) on each @@ -21,7 +21,7 @@ object Xhtml * * @param nodeSeq the node sequence */ - def toXhtml(nodeSeq: NodeSeq): String = sbToString(sequenceToXML(nodeSeq: Seq[Node], sb = _)) + def toXhtml(nodeSeq: NodeSeq): String = sbToString(sb => sequenceToXML(nodeSeq: Seq[Node], sb = sb)) /** Elements which we believe are safe to minimize if minimizeTags is true. * See http://www.w3.org/TR/xhtml1/guidelines.html#C_3 -- cgit v1.2.3