Remove annoying <br> tags when using lists

Now it removes just the previous <br> on [list], [ulist] and [*] elements, and just the following <br> to [/list] and [/ulist] elements.