[wp-hackers] The same could be said for DOS-style newlines.
Mike Little
journalized at gmail.com
Tue Aug 31 00:38:28 UTC 2004
On Mon, 30 Aug 2004 20:29:54 -0400, lowmagnet <lowmagnet at lowmag.net> wrote:
> On Tue, Aug 31, 2004 at 01:45:44AM +0200, Sebastian Herp wrote:
> > Seriously:
> > The only time i actually saw a ^M was with "mcedit" after I edited the
> > same file with the template-editor in wp-admin. "vi" does not show them,
> > "pico" doesn't and a whole bunch of other editors, too ... Windows
> > Ultraedit even asks politely what to do with the file (convert/keep) and
> > has no problem working with both styles. So where is the problem? :-)
>
> One extra byte per line. But it's not really that much of a problem. BTW, my vi sees them, and they are highly annoying. But this is usually only when looking at plugins, and I just regexp them and clean them up for later editing.
>
The reason for sticking to a standard is that if the line ends change
back and forth between different contributions it really screws up
the CVS diffs.
So a standard was picked (Unix line ends \n only) and it should be adhered to.
Mike
--
Mike Little
http://zed1.com/journalized/
More information about the hackers
mailing list