Skip to content
Snippets Groups Projects
Commit 9b214cea authored by Xusen Yin's avatar Xusen Yin Committed by Xiangrui Meng
Browse files

[SPARK-11443] Reserve space lines

The trim_codeblock(lines) function in include_example.rb removes some blank lines in the code.

Author: Xusen Yin <yinxusen@gmail.com>

Closes #9400 from yinxusen/SPARK-11443.
parent 820064e6
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ module Jekyll
.map { |l| l[/\A */].size }
.min
lines.map { |l| l[min_start_spaces .. -1] }
lines.map { |l| l.strip.size == 0 ? l : l[min_start_spaces .. -1] }
end
# Select lines according to labels in code. Currently we use "$example on$" and "$example off$"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment