diff options
author | Fawzi Mohamed <fawzi@gmx.ch> | 2021-09-03 11:13:07 +0200 |
---|---|---|
committer | Fawzi Mohamed <fawzi@gmx.ch> | 2021-11-09 00:03:09 +0100 |
commit | 7c5cba0f3c33dc53dff24bad5c11084a3ca81be4 (patch) | |
tree | 7284dc985bc32fb22d5899478130539b86d09677 /src/qml/types/qqmlbind.cpp | |
parent | c84c7a31a5228385e35be807d0ebb030a74ed779 (diff) |
qmldom: improve newlines handling with AttributesSequence::Preserve
Improve the preservation of empty lines before an attribute
declaration when reformatting trying to preserve the original
attribute sequence.
Previously we inserted extra newlines when the type of object
attribute did change, in an attempt to create/preserve sections of
attributes with the same type.
The goal was not to change files following the coding guidelines too
much.
The problem was that it was invasive (might add a newline that was not
there), and actually incorrect for property declarations bound to a
value.
Tying to preserve the newlines in the input is actually a much better
policy.
Change-Id: I6bc95229cb7012243930b6b28aa457e331472de9
Pick-to: 6.2
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/types/qqmlbind.cpp')
0 files changed, 0 insertions, 0 deletions