I’m using jEdit to flatten some CSS files.

I search for this: (;|{)\n and replace with this: $1  (note the extra space after the $1 substitution.

By “flat”, I refer to this:

.widget { position:relative; overflow:hidden; width:100%; }

instead of this:

.widget {
  position:relative;
  overflow:hidden;
  width:100%;
}