Blame doxygen-1.7.3-bz#688684.patch

Than Ngo ac3c90
--- doxygen-1.7.3.orig/src/memberdef.cpp	2011-01-02 14:17:45.000000000 +0100
Than Ngo ac3c90
+++ doxygen-1.7.3.orig/src/memberdef.cpp	2011-03-23 16:47:58.490450171 +0100
Than Ngo ac3c90
@@ -101,6 +101,7 @@ 
Than Ngo ac3c90
   //ol.disableAllBut(OutputGenerator::Html);
Than Ngo ac3c90
   bool htmlOn  = ol.isEnabled(OutputGenerator::Html);
Than Ngo ac3c90
   bool latexOn = ol.isEnabled(OutputGenerator::Latex);
Than Ngo ac3c90
+  bool manOn = ol.isEnabled(OutputGenerator::Man);
Than Ngo ac3c90
   {
Than Ngo ac3c90
     // html and latex
Than Ngo ac3c90
     if (htmlOn)  ol.enable(OutputGenerator::Html);
Than Ngo ac3c90
@@ -108,7 +109,8 @@ 
Than Ngo ac3c90
     ol.endMemberDocName();
Than Ngo ac3c90
     ol.startParameterList(!md->isObjCMethod()); 
Than Ngo ac3c90
   }
Than Ngo ac3c90
-  ol.enableAll();
Than Ngo ac3c90
+  ol.popGeneratorState();
Than Ngo ac3c90
+  ol.pushGeneratorState();
Than Ngo ac3c90
   ol.disable(OutputGenerator::Html);
Than Ngo ac3c90
   ol.disable(OutputGenerator::Latex);
Than Ngo ac3c90
   {
Than Ngo ac3c90
@@ -210,13 +212,13 @@ 
Than Ngo ac3c90
       ol.disable(OutputGenerator::Man);
Than Ngo ac3c90
       ol.disable(OutputGenerator::Latex);
Than Ngo ac3c90
       ol.startEmphasis();
Than Ngo ac3c90
-      ol.enable(OutputGenerator::Man);
Than Ngo ac3c90
+      if (manOn) ol.enable(OutputGenerator::Man);
Than Ngo ac3c90
       if (latexOn) ol.enable(OutputGenerator::Latex);
Than Ngo ac3c90
       if (a->name.isEmpty()) ol.docify(a->type); else ol.docify(a->name);
Than Ngo ac3c90
       ol.disable(OutputGenerator::Man);
Than Ngo ac3c90
       ol.disable(OutputGenerator::Latex);
Than Ngo ac3c90
       ol.endEmphasis();
Than Ngo ac3c90
-      ol.enable(OutputGenerator::Man);
Than Ngo ac3c90
+      if (manOn) ol.enable(OutputGenerator::Man);
Than Ngo ac3c90
       if (latexOn) ol.enable(OutputGenerator::Latex);
Than Ngo ac3c90
     }
Than Ngo ac3c90
     if (!a->array.isEmpty())
Than Ngo ac3c90
@@ -273,7 +275,6 @@ 
Than Ngo ac3c90
   ol.disable(OutputGenerator::Html);
Than Ngo ac3c90
   ol.disable(OutputGenerator::Latex);
Than Ngo ac3c90
   if (!md->isObjCMethod()) ol.docify(")"); // end argument list
Than Ngo ac3c90
-  ol.enableAll();
Than Ngo ac3c90
   if (htmlOn) ol.enable(OutputGenerator::Html);
Than Ngo ac3c90
   if (latexOn) ol.enable(OutputGenerator::Latex);
Than Ngo ac3c90
   if (first) ol.startParameterName(defArgList->count()<2);
Than Ngo ac3c90
--- doxygen-1.7.3.orig/src/outputgen.cpp	2010-05-09 14:49:09.000000000 +0200
Than Ngo ac3c90
+++ doxygen-1.7.3.orig/src/outputgen.cpp	2011-03-23 15:53:44.768583075 +0100
Than Ngo ac3c90
@@ -58,6 +58,7 @@ 
Than Ngo ac3c90
 
Than Ngo ac3c90
 void OutputGenerator::endPlainFile()
Than Ngo ac3c90
 {
Than Ngo ac3c90
+  t.unsetDevice();
Than Ngo ac3c90
   delete file;
Than Ngo ac3c90
   file=0;
Than Ngo ac3c90
   fileName.resize(0);