vendor/bundle/ruby/2.1.0/gems/org-ruby-0.9.12/lib/org-ruby/html_output_buffer.rb
def push_mode(mode, indent)
      super(mode, indent)

      if HtmlBlockTag[mode]
        unless ((mode_is_table?(mode) and skip_tables?) or
                (mode == :src and !@options[:skip_syntax_highlight] and defined? Pygments))
          css_class = case
                      when (mode == :src and @block_lang.empty?)
                        " class=\"src\""
                      when (mode == :src and not @block_lang.empty?)
                        " class=\"src\" lang=\"#{@block_lang}\""
                      when (mode == :example || mode == :inline_example)
                        " class=\"example\""
                      when mode == :center
                        " style=\"text-align: center\""
                      when @options[:decorate_title]
                        " class=\"title\""
                      end

          add_paragraph unless @new_paragraph == :start
          @new_paragraph = true

          @logger.debug "#{mode}: <#{HtmlBlockTag[mode]}#{css_class}>"
          @output << "<#{HtmlBlockTag[mode]}#{css_class}>"
          # Entering a new mode obliterates the title decoration
          @options[:decorate_title] = nil
        end
      end
    end
# Output buffer is entering a new mode. Use this opportunity to
# write out one of the block tags in the HtmlBlockTag constant to
# put this information in the HTML stream.
Output buffer is entering a new mode. Use this opportunity to
write out one of the block tags in the HtmlBlockTag constant to
put this information in the HTML stream.
Output buffer is entering a new mode . Use this opportunity to write out one of the block tags in the HtmlBlockTag constant to put this information in the HTML stream .
def push_mode(mode, indent)
      super(mode, indent)
      if HtmlBlockTag[mode]
        unless ((mode_is_table?(mode) and skip_tables?) or
                (mode == :src and !@options[:skip_syntax_highlight] and defined? Pygments))
          css_class = case
                      when (mode == :src and @block_lang.empty?)
                        " class=\"src\""
                      when (mode == :src and not @block_lang.empty?)
                        " class=\"src\" lang=\"#{@block_lang}\""
                      when (mode == :example || mode == :inline_example)
                        " class=\"example\""
                      when mode == :center
                        " style=\"text-align: center\""
                      when @options[:decorate_title]
                        " class=\"title\""
                      end
          add_paragraph unless @new_paragraph == :start
          @new_paragraph = true
          @logger.debug "#{mode}: <#{HtmlBlockTag[mode]}#{css_class}>"
          @output << "<#{HtmlBlockTag[mode]}#{css_class}>"
          @options[:decorate_title] = nil
        end
      end
    end
def push_mode ( mode , indent ) super ( mode , indent ) if HtmlBlockTag [ mode ] unless ( ( mode_is_table? ( mode ) and skip_tables? ) or ( mode == :src and ! @options [ :skip_syntax_highlight ] and defined? Pygments ) ) css_class = case when ( mode == :src and @block_lang . empty? ) " class=\"src\"" when ( mode == :src and not @block_lang . empty? ) " class=\"src\" lang=\"#{@block_lang}\"" when ( mode == :example || mode == :inline_example ) " class=\"example\"" when mode == :center " style=\"text-align: center\"" when @options [ :decorate_title ] " class=\"title\"" end add_paragraph unless @new_paragraph == :start @new_paragraph = true @logger . debug "#{mode}: <#{HtmlBlockTag[mode]}#{css_class}>" @output << "<#{HtmlBlockTag[mode]}#{css_class}>" @options [ :decorate_title ] = nil end end end
Output buffer is entering a new mode.
Output buffer is entering a new mode .
# Entering a new mode obliterates the title decoration
mode
indent