Repository: spark Updated Branches: refs/heads/master 820064e61 -> 9b214cea8
[SPARK-11443] Reserve space lines The trim_codeblock(lines) function in include_example.rb removes some blank lines in the code. Author: Xusen Yin <[email protected]> Closes #9400 from yinxusen/SPARK-11443. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/9b214cea Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/9b214cea Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/9b214cea Branch: refs/heads/master Commit: 9b214cea896056e7d0a69ae9d3c282e1f027d5b9 Parents: 820064e Author: Xusen Yin <[email protected]> Authored: Wed Nov 4 08:36:55 2015 -0800 Committer: Xiangrui Meng <[email protected]> Committed: Wed Nov 4 08:36:55 2015 -0800 ---------------------------------------------------------------------- docs/_plugins/include_example.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/9b214cea/docs/_plugins/include_example.rb ---------------------------------------------------------------------- diff --git a/docs/_plugins/include_example.rb b/docs/_plugins/include_example.rb index 0f4184c..6ee63a5 100644 --- a/docs/_plugins/include_example.rb +++ b/docs/_plugins/include_example.rb @@ -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$" --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
