Index: src/pagedef.cpp
===================================================================
RCS file: /cygdrive/d/cvs_doxygen/doxygen/doxygen/src/pagedef.cpp,v
retrieving revision 1.5
diff -u -r1.5 pagedef.cpp
--- src/pagedef.cpp	10 Feb 2013 09:38:59 -0000	1.5
+++ src/pagedef.cpp	9 Mar 2013 20:46:19 -0000
@@ -110,7 +110,24 @@
     ol.enable(OutputGenerator::Html);
   }
 
-  startFile(ol,getOutputFileBase(),pageName,title(),HLI_Pages,!generateTreeView);
+  if (ol.isEnabled(OutputGenerator::Man))
+  {
+    ol.pushGeneratorState();
+    //2.{ 
+    ol.disable(OutputGenerator::Man);
+    startFile(ol,getOutputFileBase(),pageName,title(),HLI_Pages,!generateTreeView);
+    ol.disableAll();
+    ol.enable(OutputGenerator::Man);
+    pageName=escapeCharsInString(name(),TRUE,TRUE);
+    startFile(ol,getOutputFileBase(),pageName,title(),HLI_Pages,!generateTreeView);
+    pageName=escapeCharsInString(name(),FALSE,TRUE);
+    ol.popGeneratorState();
+    //2.} 
+  }
+  else
+  {
+    startFile(ol,getOutputFileBase(),pageName,title(),HLI_Pages,!generateTreeView);
+  }
 
   if (!generateTreeView)
   {
@@ -125,6 +142,7 @@
   // save old generator state and write title only to Man generator
   ol.pushGeneratorState();
   //2.{
+  pageName=escapeCharsInString(name(),TRUE,TRUE);
   ol.disableAllBut(OutputGenerator::Man);
   ol.startTitleHead(pageName);
   ol.endTitleHead(pageName, pageName);
@@ -133,6 +151,7 @@
     ol.parseDoc(docFile(),docLine(),this,0,si->title,TRUE,FALSE,0,TRUE,FALSE);
     ol.endSection(si->label,si->type);
   }
+  pageName=escapeCharsInString(name(),FALSE,TRUE);
   ol.popGeneratorState();
   //2.}
 
