Problem if custom field when formating text (textile doesn't work)
Added by Bruno Moura about 14 years ago
Hi
I'm in trouble with custom fields created for display long texts
A co-worker created a field called observation for projects, with type of long text
and when was typed text like:
note1
note2
And save this value for this field, these value as showed in one single line
note1 note2
In general view, for example
I'm using - Redmine 1.0.2 with these gems/libraries and
- ImageMagick 6.5.8
- Ruby 1.8.7-p249
- LOCAL GEMS ***
bluecloth (2.0.7)
gruff (0.3.6)
highline (1.5.2)
hoe (2.3.3)
hpricot (0.8.2)
mini_magick (1.2.5)
needle (1.3.0)
nokogiri (1.4.1)
polyglot (0.3.1)
rails (2.3.9)
rake (0.8.7)
RedCloth (4.2.3)
riddle (1.0.10)
rmagick (2.12.2)
(only showded the related gems for this issue, I believe)
All these gems I had been installed using bitnami stack (My company network doesn't able me to access ruby
gems repository)
How I can fix this issue?
Using textile syntax and mark the filed for store formatted fields in cache doesn't work for us.
Can someone help us?
Thx!
Redproblem1.jpg (7.18 KB) Redproblem1.jpg | screeshot of this issue | ||
Redproblem2.jpg (10 KB) Redproblem2.jpg | screeshot of this issue |
Replies (2)
RE: Problem if custom field when formating text (textile doesn't work) - Added by Mischa The Evil about 14 years ago
This is simply said not (yet) implemented. Currently, content of custom fields (no matter what type or format) does not have any sort of formatting. It is just plain text without support for newlines.
There are several feature requests already concerning this feature. See e.g. issues #1179, #2906 and #5794.
RE: Problem if custom field when formating text (textile doesn't work) - Added by Marco Peemöller over 13 years ago
You can use css to style custom fields:
td.cf_5 { width: 300px; text-align: left; white-space:pre-line; }
white-space:pre-line works for me in chrome and firefox4