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
<code/>and<pre/>for code samples.