After pretty print button clicked , cursor is not at new line. Cursor appears with a space after the last word/string.