rocco-obb 0.82 → 0.83
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rocco.rb +2 -2
- data/rocco.gemspec +1 -1
- metadata +3 -3
data/lib/rocco.rb
CHANGED
@@ -275,7 +275,7 @@ class Rocco
|
|
275
275
|
|
276
276
|
# Combine all code blocks into a single big stream and run through either
|
277
277
|
# `pygmentize(1)` or <http://pygments.appspot.com>
|
278
|
-
code_stream = code_blocks.join("\n\n#{@options[:comment_chars]} DIVIDER\n\n")
|
278
|
+
code_stream = code_blocks.join("\n\n#{@options[:comment_chars][:single]} DIVIDER\n\n")
|
279
279
|
|
280
280
|
if pygmentize?
|
281
281
|
code_html = highlight_pygmentize(code_stream)
|
@@ -286,7 +286,7 @@ class Rocco
|
|
286
286
|
# Do some post-processing on the pygments output to split things back
|
287
287
|
# into sections and remove partial `<pre>` blocks.
|
288
288
|
code_html = code_html.
|
289
|
-
split(/\n*<span class="c.?">#{@options[:comment_chars]} DIVIDER<\/span>\n*/m).
|
289
|
+
split(/\n*<span class="c.?">#{@options[:comment_chars][:single]} DIVIDER<\/span>\n*/m).
|
290
290
|
map { |code| code.sub(/\n?<div class="highlight"><pre>/m, '') }.
|
291
291
|
map { |code| code.sub(/\n?<\/pre><\/div>\n/m, '') }
|
292
292
|
|
data/rocco.gemspec
CHANGED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocco-obb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 173
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 83
|
9
|
+
version: "0.83"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ryan Tomayko
|