CaCO3 2 years ago
parent
commit
59de6319a1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/parameter-tooltip-generator/generate-param-doc-tooltips.py

+ 2 - 2
tools/parameter-tooltip-generator/generate-param-doc-tooltips.py

@@ -55,14 +55,14 @@ def generateHtmlTooltip(section, parameter, markdownFile):
     # Add the tooltip to the config page
     with open(docsMainFolder + "/" + configPage, 'r') as configPageHandle:
         configPageContent = configPageHandle.read()
-    configPageContent = configPageContent.replace("<td>$TOOLTIP_" + section + "_" + parameter, "<td>" + htmlTooltip)
+    configPageContent = configPageContent.replace("<td>$TOOLTIP_" + section + "_" + parameter + "</td>", "<td>" + htmlTooltip + "</td>")
     with open(docsMainFolder + "/" + configPage, 'w') as configPageHandle:
         configPageHandle.write(configPageContent)
 
     # Add the tooltip to the reference image page
     with open(docsMainFolder + "/" + refImagePage, 'r') as refImagePageHandle:
         refImagePageContent = refImagePageHandle.read()
-    refImagePageContent = refImagePageContent.replace("<td>$TOOLTIP_" + section + "_" + parameter, "<td>" + htmlTooltip)
+    refImagePageContent = refImagePageContent.replace("<td>$TOOLTIP_" + section + "_" + parameter + "</td>", "<td>" + htmlTooltip + "</td>")
     with open(docsMainFolder + "/" + refImagePage, 'w') as refImagePageHandle:
         refImagePageHandle.write(refImagePageContent)