Skip to content

Commit 091bf37

Browse files
sandhukommen
authored andcommitted
Fix doctring indentation issue in #241
Added code to only apply the prefix if the current indent level is <= the default prefix spacing.
1 parent e021dda commit 091bf37

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

clojure-mode-indentation-test.el

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,32 @@ values of customisable variables."
107107
(->>
108108
|expr)")
109109

110+
(check-indentation doc-strings-without-indent-specified
111+
"
112+
(defn some-fn
113+
|\"some doc string\""
114+
"
115+
(defn some-fn
116+
|\"some doc string\"")
117+
118+
(check-indentation doc-strings-with-correct-indent-specified
119+
"
120+
(defn some-fn
121+
|\"some doc string\""
122+
"
123+
(defn some-fn
124+
|\"some doc string\"")
125+
126+
(check-indentation doc-strings-with-additional-indent-specified
127+
"
128+
(defn some-fn
129+
|\"some doc string
130+
- some note\""
131+
"
132+
(defn some-fn
133+
|\"some doc string
134+
- some note\"")
135+
110136
(provide 'clojure-mode-indentation-test)
111137

112138
;; Local Variables:

0 commit comments

Comments
 (0)