[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/web-mode b0606702fe 07/15: fixed: support multi line comme
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/web-mode b0606702fe 07/15: fixed: support multi line comment |
Date: |
Fri, 19 Aug 2022 05:59:27 -0400 (EDT) |
branch: elpa/web-mode
commit b0606702fe96bfaf5f7c9078fc55e513c9d335bf
Author: ncaq <ncaq@ncaq.net>
Commit: ncaq <ncaq@ncaq.net>
fixed: support multi line comment
---
web-mode.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/web-mode.el b/web-mode.el
index e908fdd8c2..d4a5853473 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -10936,7 +10936,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 5c8723ce3e 11/15: Merge pull request #1202 from wkirschbaum/elixir-font-lock-tweak, (continued)
- [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, 2022/08/19
- [nongnu] elpa/web-mode b0606702fe 07/15: fixed: support multi line comment,
ELPA Syncer <=