Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3553/src/classes
Modified Files:
ComposeTemplate.cpp
Log Message:
better initials quoting (fixes it for names containing single quote)
Index: ComposeTemplate.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/ComposeTemplate.cpp,v
retrieving revision 1.69
retrieving revision 1.70
diff -b -u -2 -r1.69 -r1.70
--- ComposeTemplate.cpp 18 Sep 2004 19:32:30 -0000 1.69
+++ ComposeTemplate.cpp 27 Mar 2005 14:33:48 -0000 1.70
@@ -544,6 +544,8 @@
}
- // take the first letter of each word
- wxStringTokenizer tk(name);
+ // take the first letter of each word (include single quote in
+ // delimiters so that names like "Foo O'Bar" and "Baz d'ABC" are
+ // handled correctly)
+ wxStringTokenizer tk(name, " '-");
while ( tk.HasMoreTokens() )
{
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates