Skip to content

Commit

Permalink
Merge remote-tracking branch 'remote/master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterNobody committed Jan 28, 2021
2 parents fa7c8c0 + 465947b commit a3f4483
Show file tree
Hide file tree
Showing 3 changed files with 439 additions and 408 deletions.
35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Format XML documents, without changing the content within elements.

## Features

This extension uses [vkBeautify](https://github.com/vkiryukhin/vkBeautify) for xml formating.
This extension uses a modified version of [vkBeautify](https://github.com/vkiryukhin/vkBeautify) for xml formating.

vkBeautify does not change the formatting of content within elements (eg line breaks, tabs etc) when formatting the document.

Expand All @@ -26,12 +26,44 @@ more content
</a>
```

A more complex example, before:

```xml
<тест>test</тест>
<body><![CDATA[<x><!-- comment --> </y></x>]]></body>
<body><!-- <x><[CDATA[cdata]]> </y></x> --></body>
</unbalanced>
```

After:

```xml
<тест>test</тест>
<body>
<![CDATA[<x><!-- comment --> </y></x>]]>
</body>
<body>
<!-- <x><[CDATA[cdata]]> </y></x> -->
</body>
</unbalanced>
```

## Extension Settings

None

## Release Notes

### 1.1.1

Thanks to https://github.com/MasterNobody :

- Support for non-latin tag names.
- Support for nesting comments in CDATA and vice versa.
- Support for unbalanced end-tags.
- Do not remove whitespaces and new lines inside comments and CDATA.
- Disable splitting of namespace declarations on new lines.

### 1.0.2

Fixing use of new
Expand All @@ -55,4 +87,3 @@ Copy changes
### 0.0.1

Initial release

Loading

0 comments on commit a3f4483

Please sign in to comment.