I've had it happen a few times on PC as well. It is relatively rare, but super difficult to debug when it happens since you are looking at one line of code but a different line is being saved and uploaded.
Usually a quick restart of dreamweaver clears it up and I usually only see it a couple of times per year. It is a dreamweaver bug of some sort that I'm sure they haven't figured out steps to reproduce.