diff --git a/doc/mkqhcp.py b/doc/mkqhcp.py
index 2cbee5b..f4a8fc0 100755
--- a/doc/mkqhcp.py
+++ b/doc/mkqhcp.py
@@ -1,7 +1,7 @@
#!/usr/bin/python3
## mkqhcp.py
-## Version 1.0.3
+## Version 1.0.4
## Copyright 2022-2023 John Donoghue
##
@@ -51,13 +51,21 @@ def process(name):
title = e.group("title")
break
+ # section
h2_match = re.compile(r'.*
]*>(?P[^<]+)
.*')
+ # appendix
+ h2a_match = re.compile(r'.*]*>(?P[^<]+)
.*')
+ # index
+ h2i_match = re.compile(r'.*]*>(?P[^<]+)
.*')
+
h3_match = re.compile(r'.*]*>(?P[^<]+)
.*')
h4_match = re.compile(r'.*]*>(?P[^<]+)
.*')
tag_match1 = re.compile(r'.*]*>.*')
#tag_match2 = re.compile(r'.*]*>.*')
tag_match2 = re.compile(r'.*
]*>.*')
tag_match3 = re.compile(r'.*
]*>.*')
+ tag_match4 = re.compile(r'.*
]*>.*')
+ tag_match5 = re.compile(r'.*
]*>.*')
index_match = re.compile(r'.*
]*>[\d\.\s]*(?P[^<]+)
.*')
tag = "top"
@@ -82,10 +90,18 @@ def process(name):
e = tag_match2.match(line)
if not e:
e = tag_match3.match(line)
+ if not e:
+ e = tag_match4.match(line)
+ if not e:
+ e = tag_match5.match(line)
if e:
tag = e.group("tag")
e = h2_match.match(line)
+ if not e:
+ e = h2a_match.match(line)
+ if not e:
+ e = h2i_match.match(line)
if e:
if has_h3:
f.write(' \n')