summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-07-02 14:36:15 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-07-02 14:36:15 (GMT)
commit04d161e3bf6068238b761b5a5c93ee662666f32f (patch)
tree489f9b47091376e0ed989b5d5533ae3624c944c2
parent4000b06713a958764df199560e82f1f5d62af018 (diff)
downloadDoxygen-04d161e3bf6068238b761b5a5c93ee662666f32f.zip
Doxygen-04d161e3bf6068238b761b5a5c93ee662666f32f.tar.gz
Doxygen-04d161e3bf6068238b761b5a5c93ee662666f32f.tar.bz2
Bug 703133 - "operator--()" transformed to "operator&ndash;()" in @copydoc
-rw-r--r--src/markdown.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 8f8feff..6312733 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -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;