Module: OpenscapParser::Util

Included in:
Benchmark, Group, Rule, Value
Defined in:
lib/openscap_parser/util.rb

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