vscode-xml icon indicating copy to clipboard operation
vscode-xml copied to clipboard

xml:space="preserve"

Open 1261466029 opened this issue 5 years ago • 4 comments

When xmltools executes to an element with the <XML: space = "preserve"> attribute, the space for value is ignored. before: <w:t xml:space="preserve"> </w:t> after: <w:t xml:space="preserve"></w:t>

1261466029 avatar Mar 11 '20 11:03 1261466029

Are you formatting or minifying your XML?

related: #262

DotJoshJohnson avatar Jul 02 '20 04:07 DotJoshJohnson

I just ran across this issue as well. I'm formatting the XML with XML Tools: Format as XML command. I'm on v2.5.1.

https://user-images.githubusercontent.com/2101409/137480179-f4b608e9-8435-46fb-8197-d003d77e3552.mov

For anyone else who might stumble upon this, the Redhat XML extension does preserve whitespace, but you have to enable it with a flag.

seansfkelley avatar Oct 15 '21 11:10 seansfkelley

我也遇到了这个问题。我正在使用XML Tools: Format as XML命令 XML。我在 v2.5.1 上。

Screen.Recording.2021-10-15.at.12.29.04.mov 对于可能发现这一点的任何其他人,偶尔 Redhat XML 扩展保留了空白,但您必须使用标志启用它

thank you!

1261466029 avatar Jan 21 '22 03:01 1261466029

Same issue here for v2.5.1

ubmarco avatar Apr 27 '23 08:04 ubmarco