Module: OpenscapParser::Util
Instance Method Summary collapse
Instance Method Details
#newline_to_whitespace(string) ⇒ Object
6 7 8 |
# File 'lib/openscap_parser/util.rb', line 6 def newline_to_whitespace(string) string.gsub(/ *\n+/, " ").strip end |