Merge pull request #2178 from fabianrbz/remove_warnings
This commit is contained in:
		
						commit
						875d92c387
					
				|  | @ -16,7 +16,7 @@ module Jekyll | ||||||
|           def block_code(code, lang) |           def block_code(code, lang) | ||||||
|             require 'pygments' |             require 'pygments' | ||||||
|             lang = lang && lang.split.first || "text" |             lang = lang && lang.split.first || "text" | ||||||
|             output = add_code_tags( |             add_code_tags( | ||||||
|               Pygments.highlight(code, :lexer => lang, :options => { :encoding => 'utf-8' }), |               Pygments.highlight(code, :lexer => lang, :options => { :encoding => 'utf-8' }), | ||||||
|               lang |               lang | ||||||
|             ) |             ) | ||||||
|  | @ -34,7 +34,7 @@ module Jekyll | ||||||
| 
 | 
 | ||||||
|           def block_code(code, lang) |           def block_code(code, lang) | ||||||
|             lang = lang && lang.split.first || "text" |             lang = lang && lang.split.first || "text" | ||||||
|             output = add_code_tags(code_wrap(code), lang) |             add_code_tags(code_wrap(code), lang) | ||||||
|           end |           end | ||||||
|         end |         end | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -275,7 +275,7 @@ module Jekyll | ||||||
|     def post_attr_hash(post_attr) |     def post_attr_hash(post_attr) | ||||||
|       # Build a hash map based on the specified post attribute ( post attr => |       # Build a hash map based on the specified post attribute ( post attr => | ||||||
|       # array of posts ) then sort each array in reverse order. |       # array of posts ) then sort each array in reverse order. | ||||||
|       hash = Hash.new { |hash, key| hash[key] = [] } |       hash = Hash.new { |h, key| h[key] = [] } | ||||||
|       posts.each { |p| p.send(post_attr.to_sym).each { |t| hash[t] << p } } |       posts.each { |p| p.send(post_attr.to_sym).each { |t| hash[t] << p } } | ||||||
|       hash.values.map { |sortme| sortme.sort! { |a, b| b <=> a } } |       hash.values.map { |sortme| sortme.sort! { |a, b| b <=> a } } | ||||||
|       hash |       hash | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue