-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tooltips for class docstrings, whitespace issues
- fixes occasional linebreaks between regular text and <abbr> HTML tags for tooltips with class meta information - checks for existence of actual docstrings for classes to display on frontend over defaulting to class definitions "Class(a, b)"
- Loading branch information
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
apis_core/apis_metainfo/templates/apis_metainfo/tags/class_definition.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
<abbr title="{{ docstring }}">{{ class_name }}</abbr> | ||
{% if docstring %} | ||
<abbr title="{{ docstring }}">{{ class_name }}</abbr> | ||
{% else %} | ||
{{ class_name }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters