I have the same problem for several months now. It only happens when you paste something into a "Code Block". Even if you only paste one character, it will add a new line before and after. Thus you always have to do some manual editing after pasting.
I have the issue on Windows, in the app and the browser (Firefox), as well on iOS devices.