Fixed QuoteString middle name initials
This commit is contained in:
parent
a0e0915cfc
commit
39f7ca81d1
@ -10,6 +10,8 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
Notes for GoldED+ 1.1.5, /snapshot/
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
- Fixed QuoteString middle name initials.
|
||||||
|
|
||||||
- Fix truncation of date&time in header view.
|
- Fix truncation of date&time in header view.
|
||||||
|
|
||||||
= Snapshot for the March 12, 2006.
|
= Snapshot for the March 12, 2006.
|
||||||
|
@ -663,7 +663,11 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
|
|||||||
(mode == MODE_QUOTEBUF)) {
|
(mode == MODE_QUOTEBUF)) {
|
||||||
y = 0;
|
y = 0;
|
||||||
ptr = strskip_wht(oldmsg->By());
|
ptr = strskip_wht(oldmsg->By());
|
||||||
while(*ptr) {
|
|
||||||
|
bool flag = false;
|
||||||
|
|
||||||
|
while(*ptr)
|
||||||
|
{
|
||||||
while(not IsInitial(*ptr) and (*ptr != '@') and *ptr)
|
while(not IsInitial(*ptr) and (*ptr != '@') and *ptr)
|
||||||
ptr++;
|
ptr++;
|
||||||
if(*ptr == '@')
|
if(*ptr == '@')
|
||||||
@ -674,10 +678,17 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
|
|||||||
if (y == 0)
|
if (y == 0)
|
||||||
{
|
{
|
||||||
initials[y++] = *ptr++;
|
initials[y++] = *ptr++;
|
||||||
if (*ptr) initials[y++] = *ptr++;
|
|
||||||
|
if (IsInitial(*ptr))
|
||||||
|
initials[y++] = *ptr++;
|
||||||
|
else
|
||||||
|
flag = true;
|
||||||
}
|
}
|
||||||
else if (y == 2)
|
else if ((y == 2) && !flag)
|
||||||
|
{
|
||||||
initials[y-1] = *ptr++;
|
initials[y-1] = *ptr++;
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
else if (y == 9)
|
else if (y == 9)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user