I currently have a .text_area (controller.notes) input field on my form. When I open the form it shows the leading white space between lines like so:
I am a line
I am the next line
However, when I render a table with
<tbody>
<% @controller.where(:column => "status1").order([:status, :date]).each do order %>
<tr>
<td><%= controller.notes %></td>
</tr>
<% end %>
</tbody>
it is stripping the white space in the .notes, not showing line breaks people put in with enter. How can I get it to show the line breaks? I tried <pre>
tag, but that doesn't work right as it turns off the text wrapping wrapping.
It doesn't have the -%> on the end that would tell ERB to strip the white space, so I don't know why it is.
I do have twitter bootstrap installed and I am using the tables within it; I just don't see anything in the CSS that would cause it at this point. I am only using text-align: center; for the td tag.