Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #607

  • Loading branch information...
commit 93ec80f773d42dac08b4902790bc5e39d8c45a73 1 parent 8e3795c
@bootstraponline bootstraponline authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gollum/markup.rb
View
2  lib/gollum/markup.rb
@@ -504,7 +504,7 @@ def extract_code(data)
"#{m_indent}#{id}" # print the SHA1 ID with the proper indentation
end
- data.gsub!(/^([ \t]*)``` ?([^\r\n]+)?\r?\n(.+?)\r?\n\1```[ \t\r]*$/m) do
+ data.gsub!(/^([ \t]*)``` ?([^\r\n]+)?\r?\n(.+?)\r?\n\1```[ \t]*\r?$/m) do
lang = $2 ? $2.strip : nil
id = Digest::SHA1.hexdigest("#{lang}.#{$3}")
cached = check_cache(:code, id)
Please sign in to comment.
Something went wrong with that request. Please try again.