Scripts not displayed properly in edit field

Scripts not displayed properly in edit field

I have noticed that when reopening a formula field for editing, the script is displayed a bit different than the original. This is probably because it is cleaned for redundant code, like extra parenthesis(es(es(es))))

Anyway, this messes up the more complex scripts in a way that - even when not changing anything - it returns errors on saving again.

So I guess that the cleaning process cleans too much. Just to note: this cleaning appears to happen on opening the edit screen for the field, not when saving it (the first time).