prettifySVG

external fun prettifySVG(content: String, tab: String = definedExternally, depth: Int = definedExternally): String?

Pretty-print SVG content.

Return

the formatted content, or null if the content cannot be parsed.

Parameters

tab

indentation string; defaults to a tab.

depth

initial indentation depth.