Skip to content

Commit

Permalink
is_private seems to have disappeared. (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky authored Nov 8, 2024
1 parent 52c77ee commit 3fc4f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mathics_django/doc/django_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,15 @@ def get_tests(self):
return tests

def html(self):
items = [item for item in self.items if not item.is_private()]
items = [item for item in self.items]
title_line = self.title + "\n"
if len(items) and items[0].text.startswith(title_line):
# In module-style docstring tagging, the first line of the docstring is the section title.
# since that is tagged and shown as a title, it is redundant here is the section body.
# Or that is the intent. This code is a bit hacky.
items[0].text = items[0].text[len(title_line) :]

text = "\n".join(item.html() for item in items if not item.is_private())
text = "\n".join(item.html() for item in items)
if text == "":
# HACK ALERT if text is "" we may have missed some test markup.
return mark_safe(escape_html(self.rawdoc))
Expand Down

0 comments on commit 3fc4f01

Please sign in to comment.