Skip to content

Commit cfe0f3d

Browse files
committed
fix: Fix table rendering issue (no newline after separation or between items)
1 parent e72bc47 commit cfe0f3d

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/griffe2md/templates/docstring/raises.md.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Type | Description
66
---- | -----------
7-
{%- for raises in section.value %}
7+
{% for raises in section.value %}
88
{%- if raises.annotation -%}{%- with expression = raises.annotation -%}<code>{%- include "expression.md.jinja" with context -%}</code>{%- endwith -%}{%- endif -%} | {{ raises.description }}
9-
{%- endfor -%}
9+
{% endfor %}
1010

1111
{%- elif config.docstring_section_style == "list" %}
1212

src/griffe2md/templates/docstring/receives.md.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
{% if name_column -%}Name | {% endif -%}Type | Description
77
{% if name_column -%}---- | {% endif -%}---- | -----------
8-
{%- for receives in section.value %}
8+
{% for receives in section.value %}
99
{%- if name_column -%}{%- if receives.name -%}`{{ receives.name }}`{%- endif %} | {% endif %}{% if receives.annotation -%}{%- with expression = receives.annotation -%}<code>{%- include "expression.md.jinja" with context -%}</code>{%- endwith -%}{%- endif %} | {{ receives.description }}
10-
{%- endfor -%}
10+
{% endfor %}
1111

1212
{%- elif config.docstring_section_style == "list" %}
1313

src/griffe2md/templates/docstring/returns.md.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
{% if name_column -%}Name | {% endif -%}Type | Description
77
{% if name_column -%}---- | {% endif -%}---- | -----------
8-
{%- for returns in section.value %}
8+
{% for returns in section.value %}
99
{%- if name_column -%}{%- if returns.name -%}`{{ returns.name }}`{%- endif %} | {% endif %}{% if returns.annotation -%}{%- with expression = returns.annotation -%}<code>{%- include "expression.md.jinja" with context -%}</code>{%- endwith -%}{%- endif %} | {{ returns.description }}
10-
{%- endfor -%}
10+
{% endfor %}
1111

1212
{%- elif config.docstring_section_style == "list" %}
1313

src/griffe2md/templates/docstring/warns.md.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Type | Description
66
---- | -----------
7-
{%- for warns in section.value %}
7+
{% for warns in section.value %}
88
{%- if warns.annotation -%}{%- with expression = warns.annotation -%}<code>{%- include "expression.md.jinja" with context -%}</code>{%- endwith -%}{%- endif -%} | {{ warns.description }}
9-
{%- endfor -%}
9+
{% endfor %}
1010

1111
{%- elif config.docstring_section_style == "list" %}
1212

src/griffe2md/templates/docstring/yields.md.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
{% if name_column -%}Name | {% endif -%}Type | Description
77
{% if name_column -%}---- | {% endif -%}---- | -----------
8-
{%- for yields in section.value %}
8+
{% for yields in section.value %}
99
{%- if name_column -%}{%- if yields.name -%}`{{ yields.name }}`{%- endif %} | {% endif -%}{%- if yields.annotation -%}{%- with expression = yields.annotation -%}<code>{%- include "expression.md.jinja" with context -%}</code>{%- endwith -%}{%- endif %} | {{ yields.description }}
10-
{%- endfor -%}
10+
{% endfor %}
1111

1212
{%- elif config.docstring_section_style == "list" %}
1313

0 commit comments

Comments
 (0)