Skip to content

Commit f7f8375

Browse files
committed
re-add trailing newline to comment block
1 parent 9510d0a commit f7f8375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/clojure/cljs/core.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@
870870

871871
(core/defmacro js-comment
872872
"Emit a top-level JavaScript multi-line comment. New lines will create a
873-
new comment line. Comment block will be preceded by a newline."
873+
new comment line. Comment block will be preceded and followed by a newline"
874874
[comment]
875875
(core/let [[x & ys] (string/split comment #"\n")]
876876
(core/list 'js*
@@ -880,7 +880,7 @@
880880
(core/->> ys
881881
(map #(core/str " * " (string/replace % #"^ " "") "\n"))
882882
(reduce core/str ""))
883-
" */"))))
883+
" */\n"))))
884884

885885
(core/defmacro unsafe-cast
886886
"EXPERIMENTAL: Subject to change. Unsafely cast a value to a different type."

0 commit comments

Comments
 (0)