From ce9d2a52fc03df9fa892eede140bf738651a0984 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 25 May 2013 15:53:19 +0200 Subject: Bug 700710 - Docbook output produces invalid XML for elements --- src/docbookgen.cpp | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file 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 << "fileDef->getOutputFileBase() << "\">"; } - t << "<" << nm << ">" << ""; + if (ii->local) + { + t << """; + } + else + { + t << "<"; + } + t << convertToXML(nm); + if (ii->local) + { + t << """; + } + else + { + t << ">"; + } + if (ii->fileDef && !ii->fileDef->isReference()) + { + t << ""; + } t << "" << endl; t << "" << endl; } @@ -1389,7 +1409,23 @@ static void generateDocbookForFile(FileDef *fd,FTextStream &ti) for (ili1.toFirst();(inc=ili1.current());++ili1) { t << " #include "; - t << inc->includeName; + if (inc->local) + { + t << """; + } + else + { + t << "<"; + } + t << convertToXML(inc->includeName); + if (inc->local) + { + t << """; + } + else + { + t << ">"; + } t << "" << endl; } } -- cgit v0.12