At 12:17 -0500 08/16/2012, Jim Sheffer wrote:
[...]
>I have a file that creates a .csv file from dynamic database information.
>At the end of each line, I have "\r\n" (without the quotes) to produce the
>end of line.  I use \r\n because the file is being imported into a windows
>machine.
>

Two questions if I may:

a) Are you creating the original .csv file outside of BBEdit, or within it?

b) When you open the .csv file in BBEdit, what is its line ending format?

   (By default, BBEdit will display this in the status bar at the bottom
    of the editing window.)


>In BBEdit, with "Show Invisibles" I see the end on line character (or I
>assume that is what it is- a "sideways" L character.

That is the visible marker for a hard line break, which _within an open
document_ is always a carriage return (CR).


>To test, I added \r\n twice and as I expectedand in the final .csv file,
>BBedit shows me two of these characters.
>
>Am I missing something?  The reason I ask is the new .csv files do not
>import into the clients system and they are telling me that there are 2
>carriage returns on each line.
>

In general, I recommend using BBEdit's automatic line ending support rather
than trying to adjust this manually.

If BBEdit shows the .csv file has "Windows" line endings, the file should
open normally on your client's system (or if not, something's likely
modifying the file in transit).

If instead BBEdit shows this file has "Classic Mac" or "Unix" line endings,
please change its line ending format to "Windows", then save it, and the
resulting file should  open normally on your client's machine.



Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.                      <http://www.barebones.com>
P.O. Box 1048, Bedford, MA 01730-1048

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>



Reply via email to