Skip to content

Commit 83ddd48

Browse files
committed
Make emmylua build write to file and fix some formatting
1 parent 837fe82 commit 83ddd48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_emmylua.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
contents << "---"
2929

3030
if documentation.key? "description"
31-
contents << "--- #{documentation["description"]}"
31+
contents.push(documentation["description"].split("\n").map{|ln| "--- #{ln}"})
3232
contents << "---"
3333
end
3434
documentation["args"].each do |arg|
@@ -44,4 +44,4 @@
4444
end
4545
end
4646

47-
puts contents.join("\n")
47+
(BUILD_DIR + "emmylua.lua").write(contents.join("\n"))

0 commit comments

Comments
 (0)