Skip to main content

format

Function format 

Source
pub fn format(source: &str) -> String
Expand description

Format an SVG source string with default options.

ยงExamples

let formatted = svg_format::format(r#"<svg><rect x="1"/></svg>"#);
assert!(formatted.contains("<rect"));