app/components/lookbook/params/field/component.rb in lookbook-2.0.0.rc.2 vs app/components/lookbook/params/field/component.rb in lookbook-2.0.0.rc.3

- old
+ new

@@ -12,10 +12,10 @@ def before_render styles, html = StylesExtractor.call(render_input) Editor::Component.add_styles(param.input, styles) - escaped_value = json_escape(param.value.to_s) + escaped_value = json_escape(param.value.to_s).gsub("\n", '\n') wrapper_attrs = { data: {"param-input": param.input}, "x-data": "paramsInputComponent({name: \"#{param.name}\", value: \"#{escaped_value}\"})" } @rendered_input = tag.div(**wrapper_attrs) { html.html_safe }