Skip to main content

split_header_footer

Function split_header_footer 

Source
pub fn split_header_footer(spec: &str) -> [String; 3]
Expand description

Splits a header/footer string into its raw left, centre and right sections (codes kept). Text before the first &L/&C/&R belongs to the centre, as when printing.