[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spaces added
From: |
Laine Stump |
Subject: |
Re: Spaces added |
Date: |
19 Jan 2001 20:48:27 -0500 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
address@hidden (Larry Jones) writes:
> address@hidden writes:
> >
> > I found out recently that when we check out some code that was only
> > recently placed in the repository that it has extra spaces between
> > the lines that weren't there before. Could it be that something was
> > done wrong when the code was originally placed in the repository and
> > is there a way to strip these extra spaces out while preserving the
> > code? Also when looking at the code with different tools, like
> > Tonrado 2, there won't be extra spaces, but there is an extra
> > character that looks like a bold pipe at the end of each line.
>
> My guess is that someone checked in DOS/MS-Windows files on a Unix
> machine and now you've <CR> characters at the ends of the lines that
> some tools are displaying as newlines and others are displaying as
> funny characters. If that's the case, you need to check the files out,
> fix them, and commit the changes. You may have some kind of DOS-to-
> Unix program on your Unix system that you can use to fix them, or you
> can use tr.
I've also had good luck just running a dos2unix utility over the ,v
file in the repository - make a backup first, though, as I might have
just been lucky!