[DRE-commits] [ruby-org] 168/303: Check first for Pygments support

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:33:51 UTC 2013


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository ruby-org.

commit c8ded0943e098b3b33c9dfb63af9b7d33fb56b38
Author: Waldemar Quevedo <waldemar.quevedo at gmail.com>
Date:   Sun Jul 8 10:46:45 2012 +0900

    Check first for Pygments support
---
 lib/org-ruby/html_output_buffer.rb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/org-ruby/html_output_buffer.rb b/lib/org-ruby/html_output_buffer.rb
index 811c1f7..c5a076c 100644
--- a/lib/org-ruby/html_output_buffer.rb
+++ b/lib/org-ruby/html_output_buffer.rb
@@ -109,7 +109,7 @@ module Orgmode
 
         # Only try to colorize #+BEGIN_SRC blocks with a specified language,
         # but we still have to catch the cases when a lexer for the language was not available
-        if not @block_lang.empty? and (defined? CodeRay or defined? Pygments)
+        if not @block_lang.empty? and (defined? Pygments or defined? CodeRay)
           # NOTE: CodeRay and Pygments already escape the html once, so no need to escape_buffer!
           if defined? Pygments
             begin

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-org.git



More information about the Pkg-ruby-extras-commits mailing list