Thread:Project:Support desk/Unexpected breaks in HTML before closing tags/reply

I guess that the difference is the use of $wgUseTidy. But anyway, those extra spaces shouldn't be an issue for CSS.