vendor/bundle/ruby/2.1.0/gems/org-ruby-0.9.12/lib/org-ruby/output_buffer.rb
def should_accumulate_output? line
      # Special case: Assign mode if not yet done.
      return false unless current_mode

      # Special case: Handles accumulating block content and example lines
      if mode_is_code? current_mode
        return true unless (line.end_block? and
                            line.paragraph_type == current_mode)
      end
      return false if boundary_of_block? line
      return true if current_mode == :inline_example

      # Special case: Don't accumulate the following lines.
      return false if (mode_is_heading? @output_type or
                       @output_type == :comment or
                       @output_type == :horizontal_rule or
                       @output_type == :raw_text)

      # Special case: Blank line at least splits paragraphs
      return false if @output_type == :blank

      if line.paragraph_type == :paragraph
        # Paragraph gets accumulated only if its indent level is
        # greater than the indent level of the previous mode.
        if @mode_stack[-2] and not mode_is_block? @mode_stack[-2]
          return false if line.indent <= @list_indent_stack[-2]
        end
        # Special case: Multiple "paragraphs" get accumulated.
        return true
      end

      false
    end
# Tests if the current line should be accumulated in the current
# output buffer.
Tests if the current line should be accumulated in the current
output buffer.
Tests if the current line should be accumulated in the current output buffer .
def should_accumulate_output? line
      return false unless current_mode
      if mode_is_code? current_mode
        return true unless (line.end_block? and
                            line.paragraph_type == current_mode)
      end
      return false if boundary_of_block? line
      return true if current_mode == :inline_example
      return false if (mode_is_heading? @output_type or
                       @output_type == :comment or
                       @output_type == :horizontal_rule or
                       @output_type == :raw_text)
      return false if @output_type == :blank
      if line.paragraph_type == :paragraph
        if @mode_stack[-2] and not mode_is_block? @mode_stack[-2]
          return false if line.indent <= @list_indent_stack[-2]
        end
        return true
      end
      false
    end
def should_accumulate_output? line return false unless current_mode if mode_is_code? current_mode return true unless ( line . end_block? and line . paragraph_type == current_mode ) end return false if boundary_of_block? line return true if current_mode == :inline_example return false if ( mode_is_heading? @output_type or @output_type == :comment or @output_type == :horizontal_rule or @output_type == :raw_text ) return false if @output_type == :blank if line . paragraph_type == :paragraph if @mode_stack [ - 2 ] and not mode_is_block? @mode_stack [ - 2 ] return false if line . indent <= @list_indent_stack [ - 2 ] end return true end false end
Tests if the current line should be accumulated in the current
output buffer.
Tests if the current line should be accumulated in the current output buffer .
# Special case: Assign mode if not yet done. # Special case: Handles accumulating block content and example lines # Special case: Don't accumulate the following lines. # Special case: Blank line at least splits paragraphs # Paragraph gets accumulated only if its indent level is # greater than the indent level of the previous mode. # Special case: Multiple "paragraphs" get accumulated.
line