- unless run.log_lines.empty?
  %h3 Console output
  %p Hint: Keep this to a minimum during normal use (so that things remain readable)
  %pre
    - run.log_lines.order(:number).each do |line|
      %span{:class => line.stream}= line.text

- unless run.log_lines.empty?
  %h3 Console output
  %p Hint: Keep this to a minimum during normal use (so that things remain readable)
  %pre
    - run.log_lines.order(:number).each do |line|
      = content_tag(:span, h(line.text).gsub("\n", "&#x000A;").html_safe, class: line.stream)

Improve formatting of log lines
Improve formatting of log lines
