anchor.diff: -<%= form_for(@protocol, :url => url_for(:controller => 'protocols', :action =>'protocolsio_import_save'),method: :post,format: :javascript,remote: true,:html=> { :id => "protocolsio-import-form" }) do |f| %>
  +<%= form_for(@protocol, :url => url_for(:controller => 'protocols', :action=>'protocolsio_import_save'),method: :post,format: :javascript,remote: true,:html=> { :id => "protocolsio-import-form" }) do |f| %>
   
   <%= hidden_field_tag :json_object, JSON.generate(@json_object) %>
   <%= hidden_field_tag :type,
  
positive.code:                 <div class="tab-pane active" role="tabpanel">
                    <div data-val="description" class="ql-editor">
  
                  <% step["components"].each do |key,value|  %>
                      <%#here i made an if to distinguish the first step from the
                      others, because the first step #sometimes has index values as keys instead of
                      hashes, you might see this elsewhere %>
                    <% if value.class==Hash %>
                      <% key=value %>
                    <% end %>
  
                    <% if whitelist_simple.include?(key["component_type_id"]) && key["data"]!="" && key["data"] %>
                      <br>
                      <% case key["component_type_id"]%>
                      <% when "1" %>
                        <br>
                        <strong>
                          Description:
                        </strong>
                        <%=key["data"]%><br>
                      <% when "17" %>
                        <br>
                        <strong>Expected result:
                        </strong>
                        <%=key["data"]%>
                        <br>
                      <% end %>
                    <% elsif key && whitelist_complex.include?(key["component_type_id"]) %>
  
                      <% case key["component_type_id"]%>
                      <% when "8"%>
                      <br>
                      <strong><%= key["name"]+": " %></strong>
                      <%= (key["source_data"]["name"]) %>
  
negative.code:                   <% title=nil %>
                    <% step["components"].each do |key1,value1| #finding section (title of step) %>
  
                    <% if value1.class==Hash %>
                    <% key1=value1 %>
                    <% end %>
  