TextEditor: Fix handling of multiline text for code assistant
TextEditor: Fix handling of multiline text for code assistant

Task-number: QTCREATORBUG-8544
Change-Id: Ic0cffe941309ee38cc62111960c5ddad46025a8c
Reviewed-by: Erik Verbruggen <5edfe905d082749f2ac3f4e6b42937f39f083771@digia.com>

martyone/sailfish-qtcreator,colede/qtcreator,Distrotech/qtcreator,AltarBeastiful/qt-creator,omniacreator/qtcreator,kuba1/qtcreator,danimo/qt-creator,Distrotech/qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,farseerri/git_code,omniacreator/qtcreator,xianian/qt-creator,amyvmiwei/qt-creator,omniacreator/qtcreator,maui-packages/qt-creator,maui-packages/qt-creator,farseerri/git_code,danimo/qt-creator,farseerri/git_code,farseerri/git_code,colede/qtcreator,danimo/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,colede/qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,maui-packages/qt-creator,xianian/qt-creator,xianian/qt-creator,farseerri/git_code,Distrotech/qtcreator,kuba1/qtcreator,maui-packages/qt-creator,danimo/qt-creator,kuba1/qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,Distrotech/qtcreator,colede/qtcreator,martyone/sailfish-qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,farseerri/git_code,farseerri/git_code,xianian/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,xianian/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,kuba1/qtcreator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,danimo/qt-creator,xianian/qt-creator,omniacreator/qtcreator,martyone/sailfish-qtcreator,maui-packages/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,Distrotech/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,colede/qtcreator,colede/qtcreator,martyone/sailfish-qtcreator,kuba1/qtcreator,maui-packages/qt-creator,danimo/qt-creator,colede/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,maui-packages/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,danimo/qt-creator,omniacreator/qtcreator