aboutsummaryrefslogtreecommitdiff
path: root/docs/_plugins
diff options
context:
space:
mode:
authorYu ISHIKAWA <yuu.ishikawa@gmail.com>2015-11-25 11:35:52 -0800
committerAndrew Or <andrew@databricks.com>2015-11-25 11:35:52 -0800
commit0dee44a6646daae0cc03dbc32125e080dff0f4ae (patch)
tree20002a08c146a2847bd748772e1179057721830c /docs/_plugins
parentdc1d324fdf83e9f4b1debfb277533b002691d71f (diff)
downloadspark-0dee44a6646daae0cc03dbc32125e080dff0f4ae.tar.gz
spark-0dee44a6646daae0cc03dbc32125e080dff0f4ae.tar.bz2
spark-0dee44a6646daae0cc03dbc32125e080dff0f4ae.zip
[MINOR] Remove unnecessary spaces in `include_example.rb`
Author: Yu ISHIKAWA <yuu.ishikawa@gmail.com> Closes #9960 from yu-iskw/minor-remove-spaces.
Diffstat (limited to 'docs/_plugins')
-rw-r--r--docs/_plugins/include_example.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/_plugins/include_example.rb b/docs/_plugins/include_example.rb
index 549f81fe1b..564c86680f 100644
--- a/docs/_plugins/include_example.rb
+++ b/docs/_plugins/include_example.rb
@@ -20,12 +20,12 @@ require 'pygments'
module Jekyll
class IncludeExampleTag < Liquid::Tag
-
+
def initialize(tag_name, markup, tokens)
@markup = markup
super
end
-
+
def render(context)
site = context.registers[:site]
config_dir = '../examples/src/main'
@@ -37,7 +37,7 @@ module Jekyll
code = File.open(@file).read.encode("UTF-8")
code = select_lines(code)
-
+
rendered_code = Pygments.highlight(code, :lexer => @lang)
hint = "<div><small>Find full example code at " \
@@ -45,7 +45,7 @@ module Jekyll
rendered_code + hint
end
-
+
# Trim the code block so as to have the same indention, regardless of their positions in the
# code file.
def trim_codeblock(lines)