Line breaks and indents for DIV tag wrapping

If the user is wrapping the selected with a DIV tag, add line breaks
were needed and indentation as appropriate.