Play well with diff tools
|Reported by:||fredck||Owned by:|
When opening content produced with the editor and simply saving it without changes, we should guarantee that the output data looks just like the input. Even changes in the text must touch only the changed point, not the rest of the document.
Another requirement is making it work even when opening the same content in different browsers.
Today, some things must be ensured for that:
- Attributes order must not change. One solution for that would be ordering the attributes alphabetically (see #249).
- Style attributes must have the same format. Style properties must be lowercased, spaces after ":" must be removed as well as the trailing semicolon (see #1709).
- Whitespaces must be minimized and outputted by the output formatter only.