Fix Python script that inserted a `<a name="details">` incorrectly

This commit is contained in:
Laurent Rineau 2020-04-14 13:52:01 +02:00
parent 9d3b16edf4
commit fab384d4cc
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ removes some unneeded files, and performs minor repair on some glitches.''')
class_and_struct_files=list(package_glob('./*/class*.html'))
class_and_struct_files.extend(package_glob('./*/struct*.html'))
for fn in class_and_struct_files:
re_replace_first_in_file(r'<p>Inherits\s*(.*)</p>', r'<a name="details" id="details"></a><h2 class="groupheader">Inherits from</h2><p>\1</p>', fn)
re_replace_first_in_file(r'<p>Inherits\s*(.*)</p>', r'<h2 class="groupheader">Inherits from</h2><p>\1</p>', fn)
# remove class name in Definition section if there is no default template
# parameter documented