Re: [PATCH] Beautify line-ends handling yet more.

From: Szabolcs Hubai <szab(dot)hu(at)gmail(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] Beautify line-ends handling yet more.
Date: 2015-10-10 18:45:22
Message-ID: CAOZt9c8bx+Q=-AMQDfT0QK1=jxmc5AkfBG8omnc8LAaxDiWBhQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

As an alternative solution you could do it as Notepad++ does:
Unix/Mac, DOS/Windows, old Mac.

2015-10-10 15:51 GMT+02:00 Dave Page <dpage(at)pgadmin(dot)org>:
>
>
>> On 10 Oct 2015, at 13:33, Nikolai Zhubr <n-a-zhubr(at)yandex(dot)ru> wrote:
>>
>> Hello Dave,
>> 09.10.2015 16:31, Dave Page wrote:
>> [...]
>>> I committed a modified version of this - Mac OS X uses \n as a
>>> line-end, so that makes a better default than the old-style \r used on
>>> Mac classic.
>>
>> Ah, I didn't know that, thanks for explanation.
>>
>> I suppose it is unlikely someone will use current (and future) releases of pgamin3 on Mac classic, therefore I'd propose to also update the corresponding preferences menu. Right now it shows 3 possibilities:
>>
>> * Unix (LF)
>> * DOS (CRLF)
>> * Mac (CR)
>>
>> Maybe it would make sense to only provide 2 with the following naming:
>>
>> * Unix/Mac (LF)
>> * DOS/Windows (CRLF)
>>
>> If it is OK then I'll craft a git diff for that (eventually).
>
> I'm not sure we should - it may be useful for someone working with legacy systems, and it's not like it's a massive amount of code bloating the app or overly complicating the UI.
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Nikolai Zhubr 2015-10-11 18:32:42 Small bug in function declaration sql generator
Previous Message Nikolai Zhubr 2015-10-10 14:36:54 Re: [PATCH] Beautify line-ends handling yet more.