Skip to main content

normalise

Function normalise 

Source
pub fn normalise(text: &str, json: bool) -> String
Expand description

text as pretty JSON with sorted keys when it is JSON, else as is (so a proposal and the file compare line by line, and the accepted hunks make a valid file).