I think you can square right angle corners with the Q key in iD.  You might check its help for hints.
            ---
            
            Published using OSMCha: https://osmcha.org/changesets/139064384
            