[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: Wed, 05 Aug 2009 19:59:15 +0200

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.

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=2380571
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-08-05 20:00:16 CEST

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