fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.63k stars 262 forks source link

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

Closed ncaq closed 2 years ago

ncaq commented 2 years ago

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 commented 2 years ago

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.

fxbois commented 2 years ago

thx