Skip to content

Commit

Permalink
Fix #28 by using TopScope instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
ashawley committed Dec 3, 2014
1 parent 3edc6b2 commit c1e8e96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/scala/xml/PrettyPrinter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ class PrettyPrinter(width: Int, step: Int) {
* @param pscope the namespace to prefix mapping
* @return the formatted string
*/
def format(n: Node, pscope: NamespaceBinding = null): String =
sbToString(format(n, pscope, _))
def format(n: Node, pscope: NamespaceBinding = TopScope): String = {
sbToString(format(n, pscope, _)) }

/**
* Returns a formatted string containing well-formed XML.
Expand Down

0 comments on commit c1e8e96

Please sign in to comment.