summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-04-25 12:15:31 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-04-25 12:15:31 (GMT)
commitf3a08615439a4e82f14a5dc9d1a758b401905e30 (patch)
tree19b1f909c91f2dde5461796865aaf72be96ee4c1
parent2c72e1c70c71966c3453d195c441e1cb69195779 (diff)
downloadDoxygen-f3a08615439a4e82f14a5dc9d1a758b401905e30.zip
Doxygen-f3a08615439a4e82f14a5dc9d1a758b401905e30.tar.gz
Doxygen-f3a08615439a4e82f14a5dc9d1a758b401905e30.tar.bz2
Handling digraph versus label
In case a label contains a backslash (at the end), the digrapgh statement remains unchanged, though with the label= this backslash is converted to a double backslash. Especially at the end (just before the " this can lead to problems, making the handling uniform.
-rw-r--r--src/dot.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index f61acec..cc79489 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -231,6 +231,8 @@ static EdgeProperties umlEdgeProps =
};
+static QCString convertLabel(const QCString &l);
+
static QCString getDotFontName()
{
static QCString dotFontName = Config_getString(DOT_FONTNAME);
@@ -259,7 +261,7 @@ static void writeGraphHeader(FTextStream &t,const QCString &title=QCString())
}
else
{
- t << "\"" << convertToXML(title) << "\"";
+ t << "\"" << convertLabel(title) << "\"";
}
t << endl << "{" << endl;
if (interactiveSVG) // insert a comment to force regeneration when this
@@ -4807,7 +4809,7 @@ void DotGroupCollaboration::writeGraphHeader(FTextStream &t,
}
else
{
- t << "\"" << convertToXML(title) << "\"";
+ t << "\"" << convertLabel(title) << "\"";
}
t << endl;
t << "{" << endl;