I have got a (ldif) file with a lot of entries. Some of them needs to be reformatted.
The rule for when to reform something is like this:
If a line is equal to "-" then check the previous two lines. If they both begin with a space (" ") then the space in the 2nd line should be removed and the line should be appended to the first line (the line break should be removed).