Permalink
Browse files

Refactoring divider parser to single line

  • Loading branch information...
1 parent ba6e219 commit 64e9cc50b570b34450dcd6c61f380d71a35bf979 Kurtis Rainbolt-Greene committed Jan 9, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rocco.rb
View
@@ -380,8 +380,7 @@ def highlight(blocks)
# dividers and run through the Markdown processor. Then split it back out
# into separate sections.
markdown = docs_blocks.join("\n\n##### DIVIDER\n\n")
- docs_html = process_markdown(markdown).
- split(/\n*<h5>DIVIDER<\/h5>\n*/m)
+ docs_html = process_markdown(markdown).split(/\n*<h5>DIVIDER<\/h5>\n*/m)
# Combine all code blocks into a single big stream with section dividers and
# run through either `pygmentize(1)` or <http://pygments.appspot.com>

0 comments on commit 64e9cc5

Please sign in to comment.