replace ending div tag with line break