Skip to main content

format

Function format 

Source
pub fn format(file_name: &str, input: &str, style: Style) -> String
Expand description

Format property list data.

This function is sort of equivalent to parsing the PL file and then serializing it again, except PL files with invalid keywords and values are accepted. It basically only requires that the PL file balances parentheses correctly. Internally, it constructs the crate’s abstract syntax tree for the PL input and then writes it out before reading and validating the font metric data.