diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport
index 56a6be927..28be03ec0 100755
--- a/htmlreport/cppcheck-htmlreport
+++ b/htmlreport/cppcheck-htmlreport
@@ -329,7 +329,7 @@ if __name__ == '__main__':
highlight(content, lexer, htmlFormatter).decode(
options.source_encoding))
- output_file.write(HTML_FOOTER)
+ output_file.write(HTML_FOOTER % contentHandler.versionCppcheck)
print(' ' + filename)