lemminx icon indicating copy to clipboard operation
lemminx copied to clipboard

Range formatting incorrectly closes DTD subset

Open xorye opened this issue 5 years ago • 0 comments

In this case:

<?xml version='1.0' standalone='no'?>
<!DOCTYPE root-element [
<!ENTITY local1 "LOCALLY DECLARED ENTITY">
<!ENTITY local2 "LOCALLY DECLARED ENTITY">
<!ENTITY local3 "LOCALLY DECLARED ENTITY">
]>

Range formatting the <!DOCTYPE tag with a part of the subset contents would close the subset: demo

xorye avatar Jun 08 '20 14:06 xorye