Skip to content

Commit 46521af

Browse files
authored
Fix handling subsection tags in input files (#1371)
Another tiny fix in the code which process documentation. This handles the `<subsection></subsection>` tags, like in Mathics-Django documentation.
1 parent 5349006 commit 46521af

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

mathics/doc/structure.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -554,15 +554,7 @@ def load_part_from_file(
554554
chapter, title, text, operator=None, installed=True
555555
)
556556
chapter.sections.append(section)
557-
subsections = SUBSECTION_RE.findall(text)
558-
for subsection_title in subsections:
559-
subsection = self.subsection_class(
560-
chapter,
561-
section,
562-
subsection_title,
563-
text,
564-
)
565-
section.subsections.append(subsection)
557+
# Subsections are processed inside the Documentation entry.
566558
else:
567559
section = None
568560
if not chapter.doc:

0 commit comments

Comments
 (0)