The last question of this kind I asked for allowed me to find a very useful tool, so I try again...

Two days ago, I naively asked meme which tool he used to produce such a clean style sheet for his Sigil user guide. The reply was sweat, blood and tears (nearly ).

Quote:

Originally Posted by meme

Entirely manually, and gradually building up by adding, and removing, as needed.

The converter I use produce automatically CSS style sheets of this kind (see spoiler). As you can see, styles are placed, each on their own line, and sometimes this line can be un-pretty long, which creates blocks difficult to read and debug.
I would like to use a tool to do three things:
1. - Put this style sheet in alphabetical order.
2. - Processing style after style, provoke a line change (like \n in OO) after these two signs: { ; and before and after this tricky one: }
3. - Any other idea(s) to improve it further, including skipping a line after each style.