title: How can I wrap a paragraph on a Cucumber report?
body: <p>How can I wrap a paragraph on a Cucumber report ?</p>
  
  <p>I have a Cucumber report and I am printing text on the report using:</p>
  
  <pre><code>puts "whatever i want to say"
  </code></pre>
  
  <p>In cases when that string is very long, the paragraph doesn't wrap on the HTML report.  Is there a way I can get the puts output to wrap whenever the output is really long?</p>
  
  <p>I print on the report using this:</p>
  
  <pre><code>Then(/^show me the api response$/) do
    unless @response
      @response = 'null'
    end
    puts "res: &lt;br/&gt;&lt;div style=\"div {word-break: break-all;}\"&gt;" + @response.to_s + "&lt;/div&gt;"
  end
  </code></pre>
  
  <p><strong>UPDATE</strong>
  Thanks for the answer. Here was my final code:</p>
  
  <pre><code>Then(/^show me the entire api response$/) do
    unless @response
      @response = 'null'
    end
    puts "API RESPONSE: " + @response.to_s.scan(/.{1,160}/).join("\n")
  end
  </code></pre>