Skip to main content

render_section_with

Function render_section_with 

Source
pub fn render_section_with(extra_lines: &[String], ending: &str) -> String
Expand description

Renders the body of the managed section with a chosen line terminator.

ending is "\n" everywhere a file is being created from nothing, and "\r\n" when the file being edited already spells its lines that way — see [line_ending_of] for why that is not cosmetic.