[TxMt] Re: TM (1.5.10) - auto translation of CR to LF on save?
lists+textmate at darkart.com
Fri Jan 6 21:25:45 UTC 2012
On Fri, Jan 06, 2012 at 04:16:45PM -0500, Steve King wrote:
> On 2012-01-06 15:25, Eric Hall wrote:
> > Yes, this is the case here (sorry, I'd meant to mention
> > that) - we have files with LF line endings, a few wound up with
> > CRs in the lines due to the data involved. Thus we've got
> > text files with LF line endings and a CR (one or more) in the
> > middle of some of the lines.
> Ah, I see. The CR isn't actually a line terminator here, you want it
> treated as just another character. I'm not sure I'd call this a bug;
> rather, it's something that's outside of TextMate's scope. As it's
> first and foremost a *text* editor, Allan probably decided that the use
> case of accidentally-messed-up line endings would trump the case of
> actually wanting to preserve carriage returns. A pity it doesn't have
> something like Vim's binary (-b) mode, though.
If it wasn't for the 'Use for existing files as well'
preference, I'd fully agree. Because of that setting, (which I have
unchecked), I'm thinking TextMate should not alter line terminating
characters (unless, of course, that setting is on).
More information about the textmate