#!/usr/bin/perl

use strict;
use warnings;

while (<STDIN>) {
    if ($_ =~ /^\s*($|#|;)/o || $_ =~ /^\s*\[(.+?)\]\s*$/) {
        print($_);
        next;
    }
    chomp($_);
    $_ =~ s/secret/client_secret/go;
    $_ =~ s/:/ = /go;
    my @options = split(/ +/, $_);
    @options = sort(@options);
    foreach my $thing (@options) {
        print($thing . "\n");
    }
}

#!/usr/bin/perl

use strict;
use warnings;

while (<STDIN>) {
    if ($_ =~ /^\s*($|#|;)/o || $_ =~ /^\s*\[(.+?)\]\s*$/) {
        print($_);
        next;
    }
    chomp($_);
    $_ =~ s/secret/client_secret/go;
    my @options = split(/ +/, $_);
    @options = sort(@options);
    foreach my $thing (@options) {
        $thing =~ s/:/ = /go;
        print($thing . "\n");
    }
}

Fix bug in conversion script where it splits too many new lines
Fix bug in conversion script where it splits too many new lines

I tested and then did one more bit of cleanup and look what happens...
