Skip to main content

format

Function format 

Source
pub fn format(source: &str) -> Result<JsValue, JsError>
Expand description

Format a Beancount source string.

Parses and reformats with consistent alignment. Returns a FormatResult with the formatted source or errors.