Sublime Forum

XML - Tag Closing Bug After CDATA Tag

#1

Hi,

Would anyone be able to help with a workaround to the Bug in ST4 where automatic closing tags after a <![CDATA[]]> tag are broken.

If you do something like:

<level1>
<level2>
<![CDATA[garbage]]>

Then try to add the closing tag with: </

You get:

<level1>
<level2>
<![CDATA[garbage]]>
</garbage>

The problem is documented here: https://github.com/sublimehq/sublime_text/issues/4279

This does not appear to have been assigned as an issue yet, so could be a while for an official fix.

If anyone know what to change in the default XML package, that would be appreciated.

Thanks,

Graham

0 Likes

#2

This core function is unrelated with “default XML package”. So we have to wait for fix. An alternative was to use LSP and LSP-lemminx, which provides completions to close open tags very much the same way.

0 Likes

#3

Hi @deathaxe

Thanks for the information.

Let’s hope that this fundamental parsing bug can be addressed soon (it was fine in ST3!).

Graham

0 Likes