[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Log message editor wraps incorrectly

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 06 Aug 2009 09:32:04 +0200

On 06.08.2009 09:31, Simon Large wrote:
> 2009/8/5 Jean-Marc van Leerdam<j.m.van.leerdam_at_gmail.com>:
>> Hi,
>>
>> 2009/8/5 Stefan Küng<tortoisesvn_at_gmail.com>:
>>> On 05.08.2009 17:24, Jean-Marc van Leerdam wrote:
>>>> Hi,
>>>>
>>>> Using TortoiseSVN 1.6.2, Build 16421 - 32 Bit -dev, 2009/05/22
>>>> 12:48:45 at the moment.
>>>>
>>>> When entering a log message with tsvn:logwidthmarker set to 80, if you
>>>> type new text at the beginning of a filled line, each word that
>>>> overflows at the end gets wrapped to a new line.
>>>>
>>>>
>>>> If the initial text is:
>>>>
>>>> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
>>>>
>>>> And the entered text is 'this text is inserted in front'
>>>>
>>>> Then the end result is:
>>>>
>>>> this text is inserted in front Lorem ipsum dolor sit amet, consectetur
>>>> adipisicing
>>>> elit,
>>>> sed
>>>> do
>>>> eiusmod
>>>>
>>>> Has this already been fixed in 1.6.3 or a nightly build?
>>>>
>>>
>>> Nope. And I'm not sure if this really is fixable.
>>> When you enter text and the line exceeds the length set by
>>> tsvn:logwidthmarker, the line is split by inserting a newline char.
>>> Now, if you enter at the beginning of a long line, a newline is inserted
>>> right before the last word. If you enter more text, the same happens
>>> with the second last word. But now of those two words are both on their
>>> own line, because they *both* have a newline inserted.
>>>
>>> If we would try and remove those newlines again (which we could of
>>> course), then we would also do that for newlines the user explicitly
>>> inserted him/herself. And that's not good.
>>>
>>
>> No that would not be expected indeed.
>>
>> So the editor that is being used has no notion of hard returns versus
>> soft returns or something like margins. Fair enough, I will get used
>> to it ;-)
>
> Is it possible to get scintilla to auto-wrap the text at a particular
> column and then convert the soft breaks into hard breaks only when OK
> is clicked?

I've tried that, but it only wraps at the window border, not a
particular column.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2380716
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-08-06 09:32:26 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.