diff options
author | albert-github <albert.tests@gmail.com> | 2019-04-25 12:15:31 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-04-25 12:15:31 (GMT) |
commit | f3a08615439a4e82f14a5dc9d1a758b401905e30 (patch) | |
tree | 19b1f909c91f2dde5461796865aaf72be96ee4c1 | |
parent | 2c72e1c70c71966c3453d195c441e1cb69195779 (diff) | |
download | Doxygen-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.cpp | 6 |
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; |