 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bao Nguyen Guest
|
Posted: Mon Sep 08, 2003 11:47 pm Post subject: How to get rid of extra linespaces after retrieving code fro |
|
|
Hello,
I run JBuilder 7 in Windows2k environment. Code is placed into the CVS
repository which is in a UNIX environment. After retrieving the code, it
appears to be double-spaced. This is probably due to the way UNIX treats
CR/LFs. How do I get JBuilder to get rid of the double-spacing?
Thanks in advanced
|
|
| Back to top |
|
 |
Shankar Unni Guest
|
Posted: Tue Sep 09, 2003 6:46 pm Post subject: Re: How to get rid of extra linespaces after retrieving code |
|
|
Bao Nguyen wrote:
| Quote: | I run JBuilder 7 in Windows2k environment. Code is placed into the CVS
repository which is in a UNIX environment. After retrieving the code, it
appears to be double-spaced. This is probably due to the way UNIX treats
CR/LFs.
|
No, it's not. CVS by itself handles such files quite well (it strips r
out of the rn combo).
However, sometimes certain tools will introduce an extra r (turning it
into a rrn), and CVS will generally leave this combo alone because it
gets confused by it.
Your best bet is to check out the file, fix the line endings to be
regular (either DOS-style rn or Unix-style n), and then check it back
in. On your next checkout, things should be OK.
|
|
| Back to top |
|
 |
Lori M Olson (TeamB) Guest
|
Posted: Tue Sep 09, 2003 7:33 pm Post subject: Re: How to get rid of extra linespaces after retrieving code |
|
|
Bao Nguyen wrote:
| Quote: | Hello,
I run JBuilder 7 in Windows2k environment. Code is placed into the CVS
repository which is in a UNIX environment. After retrieving the code, it
appears to be double-spaced. This is probably due to the way UNIX treats
CR/LFs. How do I get JBuilder to get rid of the double-spacing?
Thanks in advanced
|
Further note that JBuilder can be set to save files with any style of
line control that you want. That setting may be "fighting" with the CVS
setting. I don't have JB7 installed to tell you where that setting is
(because I know it's location changed recently), but you should be able
to find it in the Help.
Also be *very* careful if you are using CVS and accessing a Samba share
(files reside on the *nix machine) from Windows. The line control
problems get really hairy in this case.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
Bao Nguyen Guest
|
Posted: Tue Sep 09, 2003 10:37 pm Post subject: Re: How to get rid of extra linespaces after retrieving code |
|
|
I think you're right. When I open files with a plain text editor, (e.g.
Textpad), the file has no double spacing. I can't find the option to
disable doublespacing in JBuilder anywhere. There is an option that
configures how the editor will save files, but that doesnt help.
Thanks again,
-bao
"Bao Nguyen" <bnguyen (AT) boingo (DOT) com> wrote
| Quote: | Hello,
I run JBuilder 7 in Windows2k environment. Code is placed into the CVS
repository which is in a UNIX environment. After retrieving the code, it
appears to be double-spaced. This is probably due to the way UNIX treats
CR/LFs. How do I get JBuilder to get rid of the double-spacing?
Thanks in advanced
|
|
|
| Back to top |
|
 |
Andy Crutchlow Guest
|
Posted: Thu Oct 23, 2003 2:15 pm Post subject: Re: How to get rid of extra linespaces after retrieving code |
|
|
I have exactly the same issue and therefore problem with JBuilder8. If a simple text editor can view and edit the files correctly in a compatible way why can't Jbuilder!!!
Bao did you ever resolve this?
"Bao Nguyen" <bnguyen (AT) boingo (DOT) com> wrote:
| Quote: | I think you're right. When I open files with a plain text editor, (e.g.
Textpad), the file has no double spacing. I can't find the option to
disable doublespacing in JBuilder anywhere. There is an option that
configures how the editor will save files, but that doesnt help.
Thanks again,
-bao
"Bao Nguyen" <bnguyen (AT) boingo (DOT) com> wrote in message
news:3f5d151b (AT) newsgroups (DOT) borland.com...
Hello,
I run JBuilder 7 in Windows2k environment. Code is placed into the CVS
repository which is in a UNIX environment. After retrieving the code, it
appears to be double-spaced. This is probably due to the way UNIX treats
CR/LFs. How do I get JBuilder to get rid of the double-spacing?
Thanks in advanced
|
|
|
| Back to top |
|
 |
Lori M Olson (TeamB) Guest
|
Posted: Thu Oct 23, 2003 4:30 pm Post subject: Re: How to get rid of extra linespaces after retrieving code |
|
|
Andy Crutchlow wrote:
| Quote: | I have exactly the same issue and therefore problem with JBuilder8. If a simple text editor can view and edit the files correctly in a compatible way why can't Jbuilder!!!
Bao did you ever resolve this?
|
In JBuilder 8, you should find the line-endings settings under Project |
Project Properties, Formatting tab, Basic sub-tab. (I think. I'm pretty
sure that the JB8 settings are the same as JB9).
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
John McGrath [TeamB] Guest
|
Posted: Fri Oct 24, 2003 6:34 am Post subject: Re: How to get rid of extra linespaces after retrieving code |
|
|
On 10/23/2003 at 10:15:34 AM, Andy Crutchlow wrote:
| Quote: | I have exactly the same issue and therefore problem with JBuilder8.
|
It sounds like the files that you are feeding to JBuilder have invalid
line terminators, probably CR-CR-LF. Would you check the files with a
binary dump utility to see if this is the case?
I do not think it makes sense to fault JBuilder for how it handles
these invalid files. Instead, I think you should focus on what is
causing the invalid files to be created in the first place. I have
seen this occur with CVS when people check files out to a shared drive
from one platform and then check them in with another.
| Quote: | If a simple text editor can view and edit the files correctly in a
compatible way why can't Jbuilder!!!
|
I disagree with your notion that there is a "correct" way to handle
these invalid files. There is no defined meaning for the sequence
CR-CR-LF in a text file. Why should JBuilder assume that there is an
extra CR in the file, rather than a missing LF?
Do you have a copy of Visual Studio 6 available? If so, try opening
one of your invalid files with it and tell us what it does. I suspect
you will see the same behavior as you do with JBuilder.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
|
|
| Back to top |
|
 |
Filip Guest
|
Posted: Wed Feb 25, 2004 5:05 pm Post subject: Re: How to get rid of extra linespaces after retrieving code |
|
|
I had this problem a long time ago. In my case there was a CR-CR-LF,
how did this happen? I was only using Linux and CVS, and I still ended up with this.
Any thoughts on when this happens and why?
"John McGrath [TeamB]" <ng-b (AT) JPMcGrath (DOT) net> wrote:
| Quote: | On 10/23/2003 at 10:15:34 AM, Andy Crutchlow wrote:
I have exactly the same issue and therefore problem with JBuilder8.
It sounds like the files that you are feeding to JBuilder have invalid
line terminators, probably CR-CR-LF. Would you check the files with a
binary dump utility to see if this is the case?
I do not think it makes sense to fault JBuilder for how it handles
these invalid files. Instead, I think you should focus on what is
causing the invalid files to be created in the first place. I have
seen this occur with CVS when people check files out to a shared drive
from one platform and then check them in with another.
If a simple text editor can view and edit the files correctly in a
compatible way why can't Jbuilder!!!
I disagree with your notion that there is a "correct" way to handle
these invalid files. There is no defined meaning for the sequence
CR-CR-LF in a text file. Why should JBuilder assume that there is an
extra CR in the file, rather than a missing LF?
Do you have a copy of Visual Studio 6 available? If so, try opening
one of your invalid files with it and tell us what it does. I suspect
you will see the same behavior as you do with JBuilder.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
|
|
|
| Back to top |
|
 |
John McGrath [TeamB] Guest
|
Posted: Sat Feb 28, 2004 1:59 am Post subject: Re: How to get rid of extra linespaces after retrieving code |
|
|
On 2/25/2004 at 12:05:23 PM, Filip wrote:
| Quote: | I had this problem a long time ago. In my case there was a CR-CR-LF,
how did this happen? I was only using Linux and CVS, and I still
ended up with this.
|
I cannot say, since I do not know which software you used on those
files. I presume that you use an editor, and possibly other tools.
Any of them could have saved the files with CR-LF pairs.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|