a \r\n inside the string
the address is stored per se the way it was keyed in ..
@partner[:bank_location]
=> "92, Place Honoré d'Urfé\r\n35140, La Chapelle-Saint-Aubert"
When displaying it inside a table cell, the \r\n is ignored , and the
generated html is :
<tr>
<td colspan="2">Adresse</td>
<td colspan="2">
92, Place Honoré d'Urfé
35140, La Chapelle-Saint-Aubert
</td>
</tr>
but it's not displayed like that ...
I rather get :
Adresse 92, Place Honoré d'Urfé 35140, La Chapelle-
Saint-Aubert
Is there a way to modify this behavior or should I gsub the string to
insert html <br> tags ??
thanks for feedback
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.