Fixes issue #1040, indented lines and disconts