title: Inserting line breaks into text output in shiny using cat
body: <p>I am trying to insert some line breaks using <code>cat</code> and <code>\n</code> into some text output using <code>shiny</code>.</p>
  
  <p>Here are the relevant parts of my <code>ui.R</code> and <code>server.R</code>.</p>
  
  <p>let's say I wanted to get the results of a t-test, and have a separate line for 't', 'df' and 'p-value'</p>
  
  <p>I'm using shinydashboard layout.</p>
  
  <h1>sample data</h1>
  
  <pre><code>Group_A &lt;- 1:13
  Group_B &lt;- 8:19
  </code></pre>
  
  <h1>ui</h1>
  
  <pre><code>box(title = "T-test results:", status = "primary",  textOutput("text3"), width=3)
  </code></pre>
  
  <h1>server</h1>
  
  <pre><code>output$text3 &lt;- renderPrint({
  
    obj &lt;-  t.test(Group_A, Group_B)
  
    cat("t = ", round(obj[[3]],3), "\n, df = ", round(obj[[2]],3), "\n, p-value = ", round(obj[[3]],5)) 
  
  })
  </code></pre>
  
  <p>This output is shown in the image below:</p>
  
  <p><img src="https://i.stack.imgur.com/67En5.png" alt="enter image description here"></p>
  
  <p>As you can see, the output is across the screen left to right separated by a comma.  Because I want to add a number of results, I would like them to go top to bottom on the screen with a line break after each value.   </p>
  
  <p>Does anyone know how to do this in <code>shiny</code> ?</p>