Fix HTML links that contain file extensions
[alexxy/gromacs.git] / src / gromacs / commandline / cmdlinehelpmodule.cpp
index 30bf3ce3515c5efa9be8db74ffb0a7e44b98e583..745e0c74108edce1534e5cf8618825094548685d 100644 (file)
@@ -549,7 +549,6 @@ class HelpExportHtml : public HelpExportInterface
 HelpExportHtml::HelpExportHtml(const CommandLineHelpModuleImpl &helpModule)
     : links_(eHelpOutputFormat_Html)
 {
-    initProgramLinks(&links_, helpModule);
     File             linksFile("links.dat", "r");
     std::string      line;
     while (linksFile.readLine(&line))
@@ -557,6 +556,7 @@ HelpExportHtml::HelpExportHtml(const CommandLineHelpModuleImpl &helpModule)
         links_.addLink(line, "../online/" + line, line);
     }
     linksFile.close();
+    initProgramLinks(&links_, helpModule);
     setupHeaderAndFooter();
 }