## Description given a document with a node with mixed content like ```xml <root><bbbbbb>c<g>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh</g><g>kkkkkkkkk</g></bbbbbb></root> ``` autoformat produces ```xml <root> <bbbbbb>c<g>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh</g><g> kkkkkkkkk</g></bbbbbb> </root> ``` ## Expected result this variant looks much cleaner ```xml <root> <bbbbbb> c <g>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh</g> <g>kkkkkkkkk</g> </bbbbbb> </root> ``` ## Additional info Applying autoformat to the example in expected result clause produces ```xml <root> <bbbbbb> c <g>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh</g> <g> kkkkkkkkk</g> </bbbbbb> </root> ``` which differs from autoformat applied to a single line and also looks odd. Also it look like it mess up with indentation when editing mixed content
Activity
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
Fix mixed content maxLineWidth element wrapping (eclipse-lemminx#1797, …
40 remaining items
Add xml.format.mixedContent and xml.format.blockElements settings
Add xml.format.mixedContent and xml.format.blockElements settings
Add xml.format.mixedContent and xml.format.blockElements settings
Add xml.format.mixedContent and xml.format.blockElements settings
Add xml.format.mixedContent and xml.format.blockElements settings
Add xml.format.mixedContent and xml.format.blockElements settings
Add xml.format.mixedContent and xml.format.blockElements settings
Add xml.format.mixedContent and xml.format.blockElements settings
Add xml.format.mixedContent and xml.format.blockElements settings
Add xml.format.mixedContent and xml.format.blockElements settings
angelozerr commentedon Oct 7, 2026
Fixed with #1868
See doc at https://github.com/redhat-developer/vscode-xml/blob/main/docs/Formatting.md#xmlformatmixedcontent