[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/web-mode f8824054d6 10/15: Merge pull request #1244 from n
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/web-mode f8824054d6 10/15: Merge pull request #1244 from ncaq/fix-space-padding-of-web-mode-comment-indent-new-line |
Date: |
Fri, 19 Aug 2022 05:59:27 -0400 (EDT) |
branch: elpa/web-mode
commit f8824054d6256dbe73beaf84f4a6aeb5bc0c9f72
Merge: 4833df593e b0606702fe
Author: fxbois <fxbois@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #1244 from
ncaq/fix-space-padding-of-web-mode-comment-indent-new-line
fixed: web-mode-comment-indent-new-line
---
web-mode.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/web-mode.el b/web-mode.el
index 7f0b07109e..d5667bca62 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -11034,7 +11034,14 @@ Prompt user if TAG-NAME isn't provided."
(t
(newline 1)
(indent-line-to (plist-get ctx :col))
- (insert (concat (plist-get ctx :prefix) "")))
+ (let ((prefix (plist-get ctx :prefix)))
+ (insert
+ (concat prefix
+ ;; Check if the comment ends with a space, and if not, insert
one.
+ (if
+ (string-equal (substring prefix -1 (length prefix)) " ")
+ ""
+ " ")))))
) ;cond
))
- [nongnu] elpa/web-mode edf42372ba 06/15: fixed: web-mode-comment-indent-new-line, (continued)
- [nongnu] elpa/web-mode edf42372ba 06/15: fixed: web-mode-comment-indent-new-line, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 5c8723ce3e 11/15: Merge pull request #1202 from wkirschbaum/elixir-font-lock-tweak, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 0fbf102616 08/15: Fix ‘{{~’ completion for Handlebars, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode b409f4bf33 15/15: Merge pull request #1122 from minikN/master, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 2956ff94f7 02/15: Allow extra expanders to override standard ones, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 1f037843ca 04/15: update: add mc/mark-previous-like-this `web-mode-commands-like-expand-region`, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 4833df593e 09/15: Merge pull request #1248 from andersk/handlebars-completion, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode a0eb70a46f 14/15: Merge pull request #1153 from liZe/patch-1, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode a6b2d7b13e 13/15: Merge pull request #1167 from ojab/master, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 313fa1c415 12/15: Merge pull request #1180 from Aaronzinhoo/update-default-like-expand-region-commands, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode f8824054d6 10/15: Merge pull request #1244 from ncaq/fix-space-padding-of-web-mode-comment-indent-new-line,
ELPA Syncer <=
- [nongnu] elpa/web-mode b0606702fe 07/15: fixed: support multi line comment, ELPA Syncer, 2022/08/19