change a class in a regex to deal with the way pygments outputs C code.
This commit is contained in:
parent
2f54f4c424
commit
55700ff584
@ -175,7 +175,7 @@ class Rocco
|
|||||||
# Do some post-processing on the pygments output to split things back
|
# Do some post-processing on the pygments output to split things back
|
||||||
# into sections and remove partial `<pre>` blocks.
|
# into sections and remove partial `<pre>` blocks.
|
||||||
code_html = code_html.
|
code_html = code_html.
|
||||||
split(/\n*<span class="c1"># DIVIDER<\/span>\n*/m).
|
split(/\n*<span class="c."># DIVIDER<\/span>\n*/m).
|
||||||
map { |code| code.sub(/\n?<div class="highlight"><pre>/m, '') }.
|
map { |code| code.sub(/\n?<div class="highlight"><pre>/m, '') }.
|
||||||
map { |code| code.sub(/\n?<\/pre><\/div>\n/m, '') }
|
map { |code| code.sub(/\n?<\/pre><\/div>\n/m, '') }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user