Everytime you move an existing component into a wrapper, the identation breaks how the diff shows up.
Perhaps we need a XML formatter that instead of pretty formats, sets the indentation to 0, when we commit code changes. However, that makes the source hard to read.
So instead of a diff that reads line
-
- foo
-
+
+
+ foo
+
+
We get +
foo
+
Another problem is with the end tags, it is difficult as in the previous example to tell which opening tag an end tag is
for.A pretty formatter could solve this problem too.
foo
Perhaps the level of indentation could be added visually
too
foo
but then we bring back the problem of the ugly diffs, gah!