forked from qt-creator/qt-creator
QmlDesigner: Fix empty lines in annoation block
The annotation block on the bottom aggregated empty lines. Task-number: QDS-377 Change-Id: I29806ce224717348b50258850bdc4a7bc6140eb8 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -1008,6 +1008,9 @@ void RewriterView::writeAuxiliaryData()
|
||||
if (startIndex > 0 && endIndex > 0)
|
||||
newText.remove(startIndex, endIndex - startIndex + annotationsEnd().length());
|
||||
|
||||
newText = newText.trimmed();
|
||||
newText.append("\n");
|
||||
|
||||
QString auxData = auxiliaryDataAsQML();
|
||||
|
||||
if (!auxData.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user