File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ instance/
7474/doc
7575/docusaurus
7676
77+ * .DS_Store
78+
7779# PyBuilder
7880.pybuilder /
7981target /
Original file line number Diff line number Diff line change @@ -209,7 +209,11 @@ See https://pdoc.dev/docs/pdoc/render_helpers.html#DefaultMacroExtension for an
209209{% enddefaultmacro %}
210210{% defaultmacro docstring (var ) %}
211211 {% if var .docstring %}
212- <div class =" docstring" >{{ var.docstring | to_markdown | to_html | linkify(namespace=var.qualname) }}</div >
212+ {% set processed_docstring = var .docstring
213+ | replace ('\n ' , '\n ' )
214+ | replace ('\n ' , '\n- ' )
215+ %}
216+ <div class =" docstring" >{{ processed_docstring | to_markdown | to_html | linkify(namespace=var.qualname) }}</div >
213217 {% endif %}
214218{% enddefaultmacro %}
215219{% defaultmacro nav_members (members ) %}
Original file line number Diff line number Diff line change 55
66{% block module_info %}
77{% if module .docstring and ".. include::" not in module .docstring %}
8- {{ module.docstring | safe }}
8+ {{ module.docstring
9+ | replace('\n ', '\n ')
10+ | replace('\n ', '\n- ')
11+ | safe
12+ }}
913{% endif %}
1014{% endblock %}
1115
@@ -89,7 +93,11 @@ class {{ cls.qualname }}{{ class_bases(cls) }}:
8993```python
9094{% if doc .kind == "class" %} {{ class(doc) }}{% elif doc .kind == "function" %} {{ function(doc) }}{% else %} {{ variable(doc) }}{% endif %}
9195```
92- {{ doc.docstring | safe }}
96+ {{ doc.docstring
97+ | replace('\n ', '\n ')
98+ | replace('\n ', '\n- ')
99+ | safe
100+ }}
93101{% enddefaultmacro %}
94102
95103{% defaultmacro is_public (doc ) %}
You can’t perform that action at this time.
0 commit comments