formatting: improve smart autoformatting.