If you place a door icon on a line it will look like the left hand door. To cause the door to break the line like the right hand door, select the door and click Decompose. This converts the door from a icon to two filled rectangles, which will cover the wall.