diff options
Diffstat (limited to 'src/docbookgen.cpp')
-rw-r--r-- | src/docbookgen.cpp | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/src/docbookgen.cpp b/src/docbookgen.cpp index 5726b3e..3c81eda 100644 --- a/src/docbookgen.cpp +++ b/src/docbookgen.cpp @@ -1171,7 +1171,27 @@ static void generateDocbookForClass(ClassDef *cd,FTextStream &ti) { t << "<link linkend=\"" << ii->fileDef->getOutputFileBase() << "\">"; } - t << "<" << nm << ">" << "</link>"; + if (ii->local) + { + t << """; + } + else + { + t << "<"; + } + t << convertToXML(nm); + if (ii->local) + { + t << """; + } + else + { + t << ">"; + } + if (ii->fileDef && !ii->fileDef->isReference()) + { + t << "</link>"; + } t << "</programlisting>" << endl; t << "</para>" << endl; } @@ -1389,7 +1409,23 @@ static void generateDocbookForFile(FileDef *fd,FTextStream &ti) for (ili1.toFirst();(inc=ili1.current());++ili1) { t << " <programlisting>#include "; - t << inc->includeName; + if (inc->local) + { + t << """; + } + else + { + t << "<"; + } + t << convertToXML(inc->includeName); + if (inc->local) + { + t << """; + } + else + { + t << ">"; + } t << "</programlisting>" << endl; } } |