Small code simplifying

This commit is contained in:
Stas Degteff 2008-01-20 15:22:59 +00:00
parent 996d97f7b7
commit 27aefddd82

View File

@ -1839,7 +1839,9 @@ char* XlatStr(char* dest, const char* src, int level, Chs* chrtbl, int qpencoded
case SOFTCR:
translated = false;
if (CompTable and not WideDispsoftcr)
if (WideDispsoftcr)
goto defaultchardo;
else if (CompTable)
{
if(sptr > src) {
if(not (isspace(*(sptr-1)) or isspace(*(sptr+1)))) {
@ -1867,8 +1869,6 @@ char* XlatStr(char* dest, const char* src, int level, Chs* chrtbl, int qpencoded
}
}
}
else if (WideDispsoftcr)
goto defaultchardo;
if(not translated)
*dptr++ = *sptr++;
break;