Fix pasting of text that starts with a visually empty line
Fix pasting of text that starts with a visually empty line

Creator only indents the first line, and reindents subsequent lines relative
to the indentation change of said first line. This fails when the first line
contains no non-space characters. Solution in this change: skip (visually) empty
lines.

Reviewed-by: thorbjorn
Task-number: QTCREATORBUG-227

sandsmark/qtcreator-minimap,syntheticpp/qt-creator,duythanhphan/qt-creator,dmik/qt-creator-os2,bakaiadam/collaborative_qt_creator,KDAB/KDAB-Creator,maui-packages/qt-creator,Distrotech/qtcreator,enricoros/k-qt-creator-inspector,omniacreator/qtcreator,AltarBeastiful/qt-creator,richardmg/qtcreator,bakaiadam/collaborative_qt_creator,syntheticpp/qt-creator,xianian/qt-creator,ostash/qt-creator-i18n-uk,darksylinc/qt-creator,jonnor/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,dmik/qt-creator-os2,darksylinc/qt-creator,xianian/qt-creator,pcacjr/qt-creator,renatofilho/QtCreator,KDAB/KDAB-Creator,yinyunqiao/qtcreator,kuba1/qtcreator,duythanhphan/qt-creator,duythanhphan/qt-creator,martyone/sailfish-qtcreator,malikcjm/qtcreator,farseerri/git_code,ostash/qt-creator-i18n-uk,malikcjm/qtcreator,pcacjr/qt-creator,azat/qtcreator,hdweiss/qt-creator-visualizer,danimo/qt-creator,xianian/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,enricoros/k-qt-creator-inspector,Distrotech/qtcreator,KDE/android-qt-creator,xianian/qt-creator,renatofilho/QtCreator,jonnor/qt-creator,KDE/android-qt-creator,darksylinc/qt-creator,syntheticpp/qt-creator,xianian/qt-creator,maui-packages/qt-creator,sandsmark/qtcreator-minimap,kuba1/qtcreator,richardmg/qtcreator,dmik/qt-creator-os2,ostash/qt-creator-i18n-uk,hdweiss/qt-creator-visualizer,sandsmark/qtcreator-minimap,richardmg/qtcreator,danimo/qt-creator,pcacjr/qt-creator,danimo/qt-creator,pcacjr/qt-creator,renatofilho/QtCreator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,pcacjr/qt-creator,bakaiadam/collaborative_qt_creator,dmik/qt-creator-os2,colede/qtcreator,KDE/android-qt-creator,maui-packages/qt-creator,kuba1/qtcreator,danimo/qt-creator,yinyunqiao/qtcreator,renatofilho/QtCreator,Distrotech/qtcreator,farseerri/git_code,malikcjm/qtcreator,azat/qtcreator,richardmg/qtcreator,darksylinc/qt-creator,colede/qtcreator,omniacreator/qtcreator,colede/qtcreator,darksylinc/qt-creator,maui-packages/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,KDAB/KDAB-Creator,KDAB/KDAB-Creator,dmik/qt-creator-os2,duythanhphan/qt-creator,darksylinc/qt-creator,omniacreator/qtcreator,kuba1/qtcreator,pcacjr/qt-creator,darksylinc/qt-creator,richardmg/qtcreator,kuba1/qtcreator,kuba1/qtcreator,sandsmark/qtcreator-minimap,jonnor/qt-creator,pcacjr/qt-creator,amyvmiwei/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,KDE/android-qt-creator,ostash/qt-creator-i18n-uk,yinyunqiao/qtcreator,martyone/sailfish-qtcreator,yinyunqiao/qtcreator,duythanhphan/qt-creator,AltarBeastiful/qt-creator,jonnor/qt-creator,omniacreator/qtcreator,malikcjm/qtcreator,enricoros/k-qt-creator-inspector,bakaiadam/collaborative_qt_creator,danimo/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code,colede/qtcreator,azat/qtcreator,hdweiss/qt-creator-visualizer,AltarBeastiful/qt-creator,farseerri/git_code,yinyunqiao/qtcreator,KDE/android-qt-creator,malikcjm/qtcreator,richardmg/qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,enricoros/k-qt-creator-inspector,jonnor/qt-creator,sandsmark/qtcreator-minimap,kuba1/qtcreator,ostash/qt-creator-i18n-uk,enricoros/k-qt-creator-inspector,jonnor/qt-creator,maui-packages/qt-creator,xianian/qt-creator,duythanhphan/qt-creator,AltarBeastiful/qt-creator,azat/qtcreator,martyone/sailfish-qtcreator,dmik/qt-creator-os2,KDAB/KDAB-Creator,amyvmiwei/qt-creator,azat/qtcreator,maui-packages/qt-creator,syntheticpp/qt-creator,KDE/android-qt-creator,martyone/sailfish-qtcreator,bakaiadam/collaborative_qt_creator,hdweiss/qt-creator-visualizer,ostash/qt-creator-i18n-uk,sandsmark/qtcreator-minimap,ostash/qt-creator-i18n-uk,duythanhphan/qt-creator,malikcjm/qtcreator,kuba1/qtcreator,enricoros/k-qt-creator-inspector,colede/qtcreator,colede/qtcreator,renatofilho/QtCreator,renatofilho/QtCreator,bakaiadam/collaborative_qt_creator,hdweiss/qt-creator-visualizer,KDE/android-qt-creator,Distrotech/qtcreator,KDAB/KDAB-Creator,martyone/sailfish-qtcreator,syntheticpp/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,xianian/qt-creator,syntheticpp/qt-creator,bakaiadam/collaborative_qt_creator,richardmg/qtcreator,farseerri/git_code,farseerri/git_code,amyvmiwei/qt-creator,maui-packages/qt-creator,amyvmiwei/qt-creator,omniacreator/qtcreator,enricoros/k-qt-creator-inspector,yinyunqiao/qtcreator,yinyunqiao/qtcreator,azat/qtcreator,farseerri/git_code,hdweiss/qt-creator-visualizer,Distrotech/qtcreator,syntheticpp/qt-creator,malikcjm/qtcreator,danimo/qt-creator,danimo/qt-creator,dmik/qt-creator-os2,KDE/android-qt-creator,darksylinc/qt-creator,amyvmiwei/qt-creator