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:
Thomas Hartmann
2019-08-07 15:27:34 +02:00
parent 932819fe0a
commit db2120c451

View File

@@ -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()) {