According to the XML specification, only \t, \n, \r, and (space character) are considered whitespace and are affected by the xml:space attribute. As it has been already raised in #768, the plugin used String#trim() to remove whitespace characters, affecting also other non-XML whitespace characters:
This issue has been fixed in 6170e95. However, the fix still affects most of the characters mentioned above due to the usage of the \s character class and the issue described originally in #768 still persists.
Probably the easiest way to fix the issue is to replace the \s character class with the (space character):
const content = chardata.TEXT.replaceAll(/^[\t\n\r ]+|[\t\n\r ]+$/g, "");
According to the XML specification, only
\t,\n,\r, and(space character) are considered whitespace and are affected by thexml:spaceattribute. As it has been already raised in #768, the plugin usedString#trim()to remove whitespace characters, affecting also other non-XML whitespace characters:This issue has been fixed in 6170e95. However, the fix still affects most of the characters mentioned above due to the usage of the
\scharacter class and the issue described originally in #768 still persists.Probably the easiest way to fix the issue is to replace the
\scharacter class with the(space character):