Method: Fortitude::RenderingContext#about_to_output_non_whitespace!

Defined in:
lib/fortitude/rendering_context.rb

#about_to_output_non_whitespace!Object



166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/fortitude/rendering_context.rb', line 166

def about_to_output_non_whitespace!
  if @newline_needed && ((@suppress_formatting_level ||= 0) == 0)
    if @have_output
      o = @output_buffer_holder.output_buffer
      o.original_concat(NEWLINE)
      o.original_concat(current_indent) unless @indenting_disabled
    end

    @newline_needed = false
  end

  @have_output = true
end