In this question I have answered it, but I also edited 2 other answers in the same question. I have edited the answers of DoXicK and roirodriguez. Now almost in all answers my name is there. So is it okay to edit answers in a question where you have also answered the question? Should I carry on doing this? Or stop doing this kind of thing?
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
If the edit was to improve formatting and readability - sure. I can't see anything wrong with that.
There is nothing wrong in editing other's answers as long as it does not change the meaning of that answer. As Pekka has mentioned, if it is just formatting and readability, it should be fine. The user who originally answered would also realize that your edit is fine and leave it there, or if he feels it changes the actual answer, then he can always rollback your edit.
So you need not worry about such edits from your side.