Patrick & David-
thanks for the help!
On Aug 16, 2012, at 2:59 PM, Patrick Woolsey <
pwoo...@barebones.com> wrote:
> 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?
I create the file that creates the .cvs file within BBEdit using Lasso.
>
> b) When you open the .csv file in BBEdit, what is its line ending format?
Windows - which is what I need.
>
> (By default, BBEdit will display this in the status bar at the bottom
> of the editing window.)
>
I think I've found the problem. The file was actually sent to my client, then on to the company who created the system they are using.
I checked with my client and there file is also fine (no extra carriage returns. It seems the company they sent it to opened in up in note pad lite and somehow IT is creating the extra carriage returns.
Of course they are saying it is me, so I wanted to make sure absolutely before I tell my client that the company is full of it :-)
They have been a pain for both me and my client over this and it is quite annoying!
David- - I ran the file via terminal through hexdump with no problem. Can you tell me what I'm looking for?
Thanks for all the quick help!
James Sheffer
>
>> 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
bbe...@googlegroups.com
> To unsubscribe from this group, send email to
>
bbedit+un...@googlegroups.com
> 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 "
sup...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <
http://www.twitter.com/bbedit>