pub fn normalise(text: &str, json: bool) -> String
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).
text