Skip to main content

strip_block

Function strip_block 

Source
pub fn strip_block(content: &str, device: &str) -> String
Expand description

Return content with the # BEGIN/END filament-managed <device> block (and the lines between) removed. Lines outside any such block are preserved verbatim. Path-pure (testable), the file I/O wrappers call this.