web-mode icon indicating copy to clipboard operation
web-mode copied to clipboard

fixed: web-mode-comment-indent-new-line

Open ncaq opened this issue 3 years ago • 1 comments

Like the behavior of the original comment-indent-new-line it replaces, it inserts a space when generating a new comment line. I thought the behavior before the modification was a matter of preference and that I would have to provide a custom one. However, when I actually looked at the source code, I found that it seemed meaningless to bother to concat an empty string. Therefore, I decided that I simply forgot to insert a space.

ncaq avatar Jun 03 '22 03:06 ncaq

There was one problem. While this works well for one-line comments such as //, it is not as good for /* */, it adds an extra space.

ncaq avatar Jun 15 '22 10:06 ncaq

thx

fxbois avatar Aug 19 '22 09:08 fxbois