fn strip_code_block(input: &str) -> Vec<String> {
    if let Some((indent, empty_start, len)) = code_block_indent(input) {
        input.lines()
            .skip(empty_start)
            .take(len)
            .map(|line| {
                if line.len() < indent {
                    line.to_owned()
                } else {
                    (&line[indent..]).to_owned()
                }
            })
            .collect()
    } else {
        input.lines().map(ToOwned::to_owned).collect()
    }
}
/// Strip common indent from all input lines.
Strip common indent from all input lines.
Strip common indent from all input lines .
fn strip_code_block(input: &str) -> Vec<String> {
    if let Some((indent, empty_start, len)) = code_block_indent(input) {
        input.lines()
            .skip(empty_start)
            .take(len)
            .map(|line| {
                if line.len() < indent {
                    line.to_owned()
                } else {
                    (&line[indent..]).to_owned()
                }
            })
            .collect()
    } else {
        input.lines().map(ToOwned::to_owned).collect()
    }
}
fn strip_code_block ( input : & str ) -> Vec < String > { if let Some ( ( indent , empty_start , len ) ) = code_block_indent ( input ) { input . lines ( ) . skip ( empty_start ) . take ( len ) . map ( | line | { if line . len ( ) < indent { line . to_owned ( ) } else { ( & line [ indent .. ] ) . to_owned ( ) } } ) . collect ( ) } else { input . lines ( ) . map ( ToOwned :: to_owned ) . collect ( ) } }
Strip common indent from all input lines.
Strip common indent from all input lines .
input
&str
input
&str