HyukjinKwon commented on a change in pull request #27182: 
[SPARK-28752][BUILD][DOCS][FOLLOW-UP] Render examples imported from Jekyll 
properly via Rouge
URL: https://github.com/apache/spark/pull/27182#discussion_r365628562
 
 

 ##########
 File path: docs/_plugins/include_example.rb
 ##########
 @@ -54,9 +54,9 @@ def render(context)
         puts(e.backtrace)
         exit 1
       end
-      code = select_lines(code)
+      code = select_lines(code).strip
 
 Review comment:
   If we don't strip, the trailing newline is also rendered as a part of the 
codes.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to