Closed aicioara closed 5 years ago
It actually has to do with the <span>
Here is a test case
<!DOCTYPE html>
<html lang="en">
<body>
<div class="logo">
<span class="wsite-logo">
<a href="/"></a>
</span>
</div>
</body>
</html>
Expected nice indentation
Actual
<!DOCTYPE html>
<html lang="en">
<body>
<div class="logo">
<span class="wsite-logo">
<a href="/"></a>
</span>
</div>
</body>
</html>
Closing this, as I am using js-beautify directly.
Actually, it is a duplicate of https://github.com/jonschlinkert/pretty/issues/7
If input has tabs and spaces, I would have expected the tabs to be converted to spaces (or viceversa), but instead it gets confused.