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

Re: [TSVN] Replace \n in listview in the propertiepage

From: SteveKing <steveking_at_gmx.ch>
Date: 2004-07-01 20:06:02 CEST

Jens Peters wrote:

> When looking at the listview at the subversion propertypage (right
> mouseclick->properties (not tsvn-properties)) you can see the cariage
> return as black boxes. Could you do a find & replace before inserting
> the value of a property into that listview with a space or something
> like this?

Done in revision 1306.

> SVNPropertyPage.cpp->line 654
> (I would write a patch, but I have no clue how wide_string.replace()
> works :(, althought not within a few minutes..)

Wrong line ;)
And the std::string.replace() doesn't work like the MFC
CString.Replace() at all - its for replacing several chars with one
char. E.g.
this is a string
replace(0, 4, 'a')
aaaa is a string

Also, a little bit more work was needed since I used the data from the
listview directly - changing that for the view resulted in a wrong
property value.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jul 1 21:12:17 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.