[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/web-mode 18e4ef2061: jsx attr indent fix
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/web-mode 18e4ef2061: jsx attr indent fix |
Date: |
Sat, 24 Dec 2022 12:59:55 -0500 (EST) |
branch: elpa/web-mode
commit 18e4ef2061e12fc4cc96fdc2caf2760a85dec248
Author: fxbois <fxbois@gmail.com>
Commit: fxbois <fxbois@gmail.com>
jsx attr indent fix
#1193
---
issues/1193.jsx | 28 ++++++++++++++++++++++++++++
web-mode.el | 7 +++----
2 files changed, 31 insertions(+), 4 deletions(-)
diff --git a/issues/1193.jsx b/issues/1193.jsx
new file mode 100644
index 0000000000..22c5c47eda
--- /dev/null
+++ b/issues/1193.jsx
@@ -0,0 +1,28 @@
+function hello1() {
+
+ return (
+ <Input
+ placeholder={placeholder}
+ {...inputStyleProps}
+ {...getInputProps }
+
+ />
+
+ );
+
+};
+
+function hello2() {
+
+ return (
+ <Input
+ placeholder={placeholder}
+ {...inputStyleProps}
+ {...getInputProps }
+
+ >
+
+ </Input>
+ );
+
+};
diff --git a/web-mode.el b/web-mode.el
index 236654dc4e..86a7474470 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -2,7 +2,7 @@
;; Copyright 2011-2023 François-Xavier Bois
-;; Version: 17.3.6
+;; Version: 17.3.7
;; Author: François-Xavier Bois
;; Maintainer: François-Xavier Bois <fxbois@gmail.com>
;; Package-Requires: ((emacs "23.1"))
@@ -23,7 +23,7 @@
;;---- CONSTS
------------------------------------------------------------------
-(defconst web-mode-version "17.3.6"
+(defconst web-mode-version "17.3.7"
"Web Mode version.")
;;---- GROUPS
------------------------------------------------------------------
@@ -8823,8 +8823,7 @@ Also return non-nil if it is the command
`self-insert-command' is remapped to."
;;(or (not (string= language "jsx"))
;; (string= options "is-html"))
(not (and (string= language "jsx")
- (or (string= options "is-html")
- (web-mode-jsx-is-expr pos))))
+ (web-mode-jsx-is-expr pos)))
)
(when debug (message "I190(%S) attr-indent" pos))
(cond
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/web-mode 18e4ef2061: jsx attr indent fix,
ELPA Syncer <=