method
flush_newline_if_pending
v8.1.1 -
Show latest stable
- Class:
ActionView::Template::Handlers::ERB::Erubi
flush_newline_if_pending(src)private
No documentation available.
# File actionview/lib/action_view/template/handlers/erb/erubi.rb, line 75
def flush_newline_if_pending(src)
if @newline_pending > 0
with_buffer { src << ".safe_append='#{"\n" * @newline_pending}" << @text_end }
@newline_pending = 0
end
end