summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-08-11 13:06:22 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-08-11 13:06:22 (GMT)
commit34cc61be7d0f6dafcaaa5fcdaa98ce4d31014634 (patch)
treead481e345a35820f0142bb774556afc6de0d00fa /src/dot.cpp
parent3583a7c0bea47665a06d14a64b62376eee21c528 (diff)
downloadDoxygen-34cc61be7d0f6dafcaaa5fcdaa98ce4d31014634.zip
Doxygen-34cc61be7d0f6dafcaaa5fcdaa98ce4d31014634.tar.gz
Doxygen-34cc61be7d0f6dafcaaa5fcdaa98ce4d31014634.tar.bz2
Release-1.8.2
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index 5d6cfbd..39bc844 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -1540,10 +1540,10 @@ static QCString convertLabel(const QCString &l)
{
QCString result;
QCString bBefore("\\_/<({[: =-+@%#~?$"); // break before character set
- QCString bAfter(">]),;|"); // break after character set
+ QCString bAfter(">]),:;|"); // break after character set
const char *p=l.data();
if (p==0) return result;
- char c;
+ char c,pc=0;
char cs[2];
cs[1]=0;
int len=l.length();
@@ -1573,7 +1573,7 @@ static QCString convertLabel(const QCString &l)
foldLen = (3*foldLen+sinceLast+2)/4;
sinceLast=1;
}
- else if (charsLeft>foldLen/3 && sinceLast>foldLen && bBefore.contains(c))
+ else if ((pc!=':' || c!=':') && charsLeft>foldLen/3 && sinceLast>foldLen && bBefore.contains(c))
{
result+="\\l";
result+=replacement;
@@ -1588,7 +1588,7 @@ static QCString convertLabel(const QCString &l)
foldLen = (foldLen+sinceLast+1)/2;
sinceLast=0;
}
- else if (charsLeft>foldLen/3 && sinceLast>foldLen && bAfter.contains(c))
+ else if (charsLeft>foldLen/3 && sinceLast>foldLen && bAfter.contains(c) && (c!=':' || *p!=':'))
{
result+=replacement;
result+="\\l";
@@ -1601,6 +1601,7 @@ static QCString convertLabel(const QCString &l)
sinceLast++;
}
charsLeft--;
+ pc=c;
}
return result;
}