Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is_private seems to have disappeared. #213

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading