Skip to content

formatOnPaste is broken when pasting inside a DOCTYPE section #264

Open
@fbricon

Description

@fbricon

With "editor.formatOnPaste": true, when pasting <!ENTITY foo "bar"> inside the DOCTYPE section of:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article [

]>
<article></article>

the block is formatted as

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article [
<null>
]>
<article></article>

instead of

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article [
  <!ENTITY foo "bar">
]>
<article></article>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions