diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2019-12-20 12:48:25 +0100 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2019-12-20 14:16:32 +0100 |
commit | 813d70051c74b83e2e65a1a3358b759b50924a83 (patch) | |
tree | d52f77859b5adeabe9fdd1f6caf6335f52cecf61 /tests/auto/qml/qmlformat/data | |
parent | 73189151b59430671630ae931ac42c0e18cdab55 (diff) |
tools/qmlformat: Improve formatting quite a bit
- Fix strings not getting properly escaped
- Fix if/else blocks not getting formatted correctly in some cases
- Remove unnecessary newlines
- Improve comment attachment
Change-Id: Id8264c069315b3c6bd9ba8e8ac991dbdce8581a7
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlformat/data')
-rw-r--r-- | tests/auto/qml/qmlformat/data/Example1.formatted.nosort.qml | 3 | ||||
-rw-r--r-- | tests/auto/qml/qmlformat/data/Example1.formatted.qml | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/qml/qmlformat/data/Example1.formatted.nosort.qml b/tests/auto/qml/qmlformat/data/Example1.formatted.nosort.qml index be9c43648e..080cec438e 100644 --- a/tests/auto/qml/qmlformat/data/Example1.formatted.nosort.qml +++ b/tests/auto/qml/qmlformat/data/Example1.formatted.nosort.qml @@ -62,7 +62,7 @@ Item { y++; console.log("Bar"); } - while (true) + while (true) console.log("Wee"); with (foo) { @@ -148,4 +148,3 @@ Item { } } - diff --git a/tests/auto/qml/qmlformat/data/Example1.formatted.qml b/tests/auto/qml/qmlformat/data/Example1.formatted.qml index 7adcfb2f3e..4b65b9add6 100644 --- a/tests/auto/qml/qmlformat/data/Example1.formatted.qml +++ b/tests/auto/qml/qmlformat/data/Example1.formatted.qml @@ -62,7 +62,7 @@ Item { y++; console.log("Bar"); } - while (true) + while (true) console.log("Wee"); with (foo) { @@ -148,4 +148,3 @@ Item { } } - |