|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Preserving line breaks when reading a file
I've tried reading in a file both using cffile action="read" and cfhttp and getting the cfhttp.fileContent. These both read the file fine, but then when I do a cfoutput for the variable all of the line breaks have disappeared. Is there an option I need to set either when reading or writing?
|
|
#2
|
|||
|
|||
|
nevermind, duh, i know what my problem is. of course line breaks when parsed as html won't show up right...
|
|
#3
|
|||
|
|||
|
Hi there,
I thik you want to use the <PRE> tag this will keep text in it's PREFORMATED state, preserving the line breaks for you. Good luck! ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Preserving line breaks when reading a file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|