_From @slayerxj on July 28, 2017 7:28_
_Originally reported against VSCode (which uses jsbeautifier as formatter for HTML): Microsoft/vscode#31628_
Steps to Reproduce:
<!DOCTYPE html>
<html>
<head></head>
<body>
<div>
<div>
<p>Reconstruct the schematic editor the EDA system <a href="http://www.jedat.co.jp/eng/products.html"><i>AlphaSX</i></a> series</p>
</div>
</div>
</body>
</html>
...<p>EDA system <a href="http://www.jedat.co.jp"><i>Alpha-SX</i></a> series</p>
Notice the unnecessary spaces added before 'series'
@aeschli -
Excellent bug report.
With the repro steps you provided, I can reproduce the issue.
I see your original comment said you have "editor.wordWrap": "off". But then your repro steps talk mention setting wrap to 120. To have wordWrap turned off you'd set the wrap value to 0. Then this problem does not occur.
@bitwiseman Sorry for the confusion. Ignore the "editor.wordWrap": "off"
comment. That's a VSCode setting and is not related to html formatting. I'll update the description...
I am seeing the same thing in VSCode 1.16.1, particularly after inline a and code tags.
I am using "
" instead of spaces to prevent the unwanted white space appearing (the unwanted white space can cause problems in output).