Skip to content

Commit eda5594

Browse files
remove new line appended to the page when has no rails context
1 parent 58a70bf commit eda5594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/react_on_rails/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def rails_context_if_not_already_rendered
478478

479479
# prepend the rails_context if not yet applied
480480
def prepend_render_rails_context(render_value)
481-
"#{rails_context_if_not_already_rendered}\n#{render_value}".html_safe
481+
"#{rails_context_if_not_already_rendered}\n#{render_value}".strip.html_safe
482482
end
483483

484484
def internal_react_component(react_component_name, options = {})

0 commit comments

Comments
 (0)