generate-configuration: improve indent method, style changes