private Method

XmlSimple.normalise_space(text)

Removes leading and trailing whitespace and sequences of whitespaces from a string.

text:String to be normalised.

Source Code

# File active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 902
def normalise_space(text)
  text.strip.gsub(/\s\s+/, ' ')
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.