if (*idstr == '.' && idstr[1] == '.' && idstr[2] == '.')
{
/*
- * Convert "..." to Unicode ellipsis...
+ * Convert ... to Unicode ellipsis...
*/
*bufptr++ = (char)0xE2;
*bufptr++ = (char)0xA6;
idstr += 2;
}
- else if (*idstr == '\"')
+ else if (*idstr == '\\' && idstr[1] == '\"')
{
if (quote)
{
/*
- * Convert " to right quote.
+ * Convert \" to Unicode right (curley) double quote.
*/
*bufptr++ = (char)0xE2;
else
{
/*
- * Convert " to left quote.
+ * Convert \" to Unicode left (curley) double quote.
*/
*bufptr++ = (char)0xE2;
}
quote = !quote;
+ idstr ++;
}
else
*bufptr++ = *idstr;