diff --git a/docs/htmlify/htmlify.cpp b/docs/htmlify/htmlify.cpp
index 561548abd..5c6649dec 100644
--- a/docs/htmlify/htmlify.cpp
+++ b/docs/htmlify/htmlify.cpp
@@ -11,7 +11,7 @@
#include "to_xml.h"
-const char* VERSION = "3.4";
+const char* VERSION = "3.5";
using namespace std;
using namespace dlib;
diff --git a/docs/htmlify/to_xml.cpp b/docs/htmlify/to_xml.cpp
index 54f660a32..1455f8ba2 100644
--- a/docs/htmlify/to_xml.cpp
+++ b/docs/htmlify/to_xml.cpp
@@ -803,6 +803,7 @@ void process_file (
break;
case ':':
+ token_accum.push_back(make_pair(type,token));
if (recently_seen_slots)
{
token_accum.clear();