[DRE-commits] [ruby-org] 219/303: Assigning a CSS class for HTML output was modified a little bit.
Jérémy Bobbio
lunar at alioth.debian.org
Fri Aug 9 17:34:01 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 0c2ac5c9f0758ede4f5afe120d511820f8b334a7
Author: vonavi <ivvl82 at gmail.com>
Date: Thu Jan 10 19:29:52 2013 +0300
Assigning a CSS class for HTML output was modified a little bit.
---
lib/org-ruby/html_output_buffer.rb | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/lib/org-ruby/html_output_buffer.rb b/lib/org-ruby/html_output_buffer.rb
index 834b388..c752f01 100644
--- a/lib/org-ruby/html_output_buffer.rb
+++ b/lib/org-ruby/html_output_buffer.rb
@@ -62,11 +62,18 @@ module Orgmode
skip_tag = ((mode_is_table?(mode) and skip_tables?) or
(mode == :src and defined? Pygments))
if HtmlBlockTag[mode] and not skip_tag
- css_class = @title_decoration
- css_class = " class=\"src\"" if mode == :src and @block_lang.empty?
- css_class = " class=\"src src-#{@block_lang}\"" if mode == :src and not @block_lang.empty?
- css_class = " class=\"example\"" if (mode == :example || mode == :inline_example)
- css_class = " style=\"text-align: center\"" if mode == :center
+ css_class = case
+ when (mode == :src and @block_lang.empty?)
+ " class=\"src\""
+ when (mode == :src and not @block_lang.empty?)
+ " class=\"src src-#{@block_lang}\""
+ when (mode == :example || mode == :inline_example)
+ " class=\"example\""
+ when mode == :center
+ " style=\"text-align: center\""
+ else
+ @title_decoration
+ end
output_indentation
@logger.debug "#{mode}: <#{HtmlBlockTag[mode]}#{css_class}>\n"
--
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