Second char from first name will act as lastname in initials
This commit is contained in:
parent
81300cf5a4
commit
b4113e751e
@ -10,6 +10,8 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
Notes for GoldED+ 1.1.5, /snapshot/
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
+ Second char from first name will act as lastname in initials
|
||||||
|
|
||||||
+ Improve description of the "DispHdrLocation" config file token.
|
+ Improve description of the "DispHdrLocation" config file token.
|
||||||
|
|
||||||
+ New menu item "Mark thread as read" added to "Mark What?" menu.
|
+ New menu item "Mark thread as read" added to "Mark What?" menu.
|
||||||
|
@ -665,12 +665,22 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
|
|||||||
ptr++;
|
ptr++;
|
||||||
if(*ptr == '@')
|
if(*ptr == '@')
|
||||||
break;
|
break;
|
||||||
if(*ptr) {
|
|
||||||
initials[y++] = *ptr;
|
if (*ptr)
|
||||||
if(y == 9)
|
{
|
||||||
break;
|
if (y == 0)
|
||||||
ptr++;
|
{
|
||||||
|
initials[y++] = *ptr++;
|
||||||
|
if (*ptr) initials[y++] = *ptr++;
|
||||||
}
|
}
|
||||||
|
else if (y == 2)
|
||||||
|
initials[y-1] = *ptr++;
|
||||||
|
else if (y == 9)
|
||||||
|
break;
|
||||||
|
else
|
||||||
|
initials[y++] = *ptr++;
|
||||||
|
}
|
||||||
|
|
||||||
while(IsInitial(*ptr) and *ptr)
|
while(IsInitial(*ptr) and *ptr)
|
||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user