What I am finding is that if you edit a post with code in it, then save changes, there are many, many, many extra lines being added for each edit.

Code:
[color=#0000ff]function[/color][size=2] OnDefaultValue(ret) [/size]
...