From: Patrick G. <cap...@sl...> - 2001-02-12 15:41:46
|
Chris Nandor wrote: > > Right now, our template files have a mix of LF and CRLF in them. That is, > teh templates themselves contain data that is CRLF (from the database), > while the rest of the file is written with regular LF. This seems > suboptimal to me, and makes us more prone to error. We need to decide how > we want to have this handled. I think we should not leave it as-is, but > perhaps should convert from "\015\012" to "\n" on reading from the > database, and convert from "\n" to "\015\012" on writing to the database. > > Thoughts? > > -- > Chris Nandor pu...@po... http://pudge.net/ > Open Source Development Network pu...@os... http://osdn.com/ > > _______________________________________________ > Slashcode-development mailing list > Sla...@li... > http://lists.sourceforge.net/lists/listinfo/slashcode-development in the template tool, a simple /\x0d/\n/ applied to what is going to be written to file upon pulling them out of the database would solve this particular issue. Right now, we're writing to file the contents that are literally in the db (which includes the LF/CRLF '^M's). Trying to edit these files with the ^M in them is a little troublesome. |