Skip to content

Optionally Remove Leading LF Before First "xmlns" #89

Closed
@boozook

Description

@boozook

Needed new feature.

"xmlTools.splitFirstXmlnsOnFormat": false - if false then first ns should not be aligned.

For example we have config:

{
  "xmlTools.splitXmlnsOnFormat": true,
  "xmlTools.splitFirstXmlnsOnFormat": false
}

and xml:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<xml xmlns="http://www.w3.org/1999/xhtml" xmlns:soap="http://www.w3.org/2003/05/soap-envelope/" soap:encoding="http://www.w3.org/2003/05/soap-encoding">
	<node></node>
</xml>

So aligned xml should be that:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<xml xmlns="http://www.w3.org/1999/xhtml"
     xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
     soap:encoding="http://www.w3.org/2003/05/soap-encoding">
	<node></node>
</xml>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions