#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    richmond, va
    Posts
    9
    Rep Power
    0

    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. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    richmond, va
    Posts
    9
    Rep Power
    0
    nevermind, duh, i know what my problem is. of course line breaks when parsed as html won't show up right...
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Location
    South of Boston, MA
    Posts
    1
    Rep Power
    0
    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!

IMN logo majestic logo threadwatch logo seochat tools logo