Skip to content

Commit

Permalink
remove new line appended to the page when has no rails context
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Jul 28, 2024
1 parent 58a70bf commit eda5594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/react_on_rails/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def rails_context_if_not_already_rendered

# prepend the rails_context if not yet applied
def prepend_render_rails_context(render_value)
"#{rails_context_if_not_already_rendered}\n#{render_value}".html_safe
"#{rails_context_if_not_already_rendered}\n#{render_value}".strip.html_safe
end

def internal_react_component(react_component_name, options = {})
Expand Down

0 comments on commit eda5594

Please sign in to comment.