Puppet Function: extlib::remove_blank_lines
- Defined in:
- functions/remove_blank_lines.pp
- Function type:
- Puppet Language
Summary
Remove blank lines from a stringOverview
4 5 6 7 8 |
# File 'functions/remove_blank_lines.pp', line 4
function extlib::remove_blank_lines (
String[1] $content,
) >> String[1] {
return $content.split("\n").filter |$x| { !$x.empty }.join("\n")
}
|