Reformat document to remove newlines before open braces