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

matt_paz’s picture

Oops. 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.

yched’s picture

This 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.

matt_paz’s picture

Status: Active » Closed (fixed)

Interesting. 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!