Hi, looks like a classic problem, but can''t find a real solution
anywhere.
Im using the Ruby rtf plugin. I get a record from the DB with in there
a large textfield, WITH linefeeds. (I can see them in de record in
phpadmin.)
when I export my recordfield to rtf, all the linefeeds/HR/CR ''s are
gone.
I''ve tried all sorts of variantions of this
string = @visit.besproken
 new_string = string.gsub(/\n/,''\par'')
 document.paragraph << "#{new_string}"
But nothing really works. Is there a sort of standard way of doing
this? I''ve been going through all my RoR-books, and searching the
forum, but it stays out of reach.
Many thanks for any suggestion. This forum rocks.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---