Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.0-rc7
Component:
text.module
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2008 at 12:30 UTC
Updated:
22 Sep 2008 at 14:56 UTC
I'm currently storing some preformatted text in a CCK textarea and wanted to wrap some pre-tags around it on render, but I'm stumbling on the best way to do it. I've tried a number of variations, but it looks like line feeds are being wrapped on node load. Any thoughts on the best way to accomplish what I'm looking to do? Thanks!
Comments
Comment #1
matt_paz commentedOops. Wish I could edit that ... meant to say carriage returns appear to be ripped out by the time it gets to node load ... on edit and in the data, I still see 'me. Thanks.
Comment #2
yched commentedThis is a question of input filter processing. CCK just gives the text to regular core filter processing, so you need to adjust your filters settings accordingly.
Comment #3
matt_paz commentedInteresting. I had the text processing option set to plain text and was wrapping a pre tag around it on view assuming that the plain text option wouldn't apply any "input" filters. I switched the field definition to be a filtered data and after tweaking the filters a bit, I was able to get the expected outcome. I guess the only question would be what happens when the text processing option is set to plain text and what the expected behavior should be. I'm closing this ticket, but if you have any insight on that front, I'd be interested in learning more. Thanks!