Commit 04d161e3 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 703133 - "operator--()" transformed to "operator–()" in @copydoc

parent 4000b067
......@@ -442,7 +442,7 @@ static int processEmphasis3(GrowBuf &out, const char *data, int size, char c)
}
/** Process ndash and mdashes */
static int processNmdash(GrowBuf &out,const char *data,int,int size)
static int processNmdash(GrowBuf &out,const char *data,int off,int size)
{
// precondition: data[0]=='-'
int i=1;
......@@ -459,7 +459,7 @@ static int processNmdash(GrowBuf &out,const char *data,int,int size)
{
count++;
}
if (count==2) // -- => ndash
if (count==2 && (off<8 || qstrncmp(data-8,"operator",8)!=0)) // -- => ndash
{
out.addStr("&ndash;");
return 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment