Closed Wonicon closed 7 years ago
This seems useful, but can you add some tests, please?
@threedaymonk can this get merged+released? anything still needed?
I'm really sorry! I didn't see that you'd added the tests.
Merged into master. Thank you!
And released in version 1.2.1.
In some cases, we might have html code embedded with svg code like:
As the tag belongs to svg specification, it will not be recognized as
standalone_element
butopen_element
, causing the following html tags to indent incorrectly.Ending with
/>
can guarantee that the tag is a self-closing tag. Therefore I think we can recognize these tags asstandalone_element
regardless of their names.