Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Mar 19, 2024
1 parent 69b151a commit 6c21400
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mathics_django/doc/django_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _set_classes(self):
self.part_class = DjangoDocPart
self.section_class = DjangoDocSection
self.subsection_class = DjangoDocSubsection

def __str__(self):
return "\n\n\n".join(str(part) for part in self.parts)

Expand Down Expand Up @@ -197,12 +197,13 @@ class DjangoDocChapter(DocChapter, DjangoDocElement):
"""An object for a Django Documentation Chapter.
A Chapter is part of a Part and contains Sections.
"""

@property
def guide_or_symbol_sections(self):
if self.guide_sections:
return self.guide_sections
return self.sections

def get_collection(self):
"""Return a list of chapters in the part of this chapter."""
return self.part.chapters
Expand Down

0 comments on commit 6c21400

Please sign in to comment.