Skip to content

Commit 9e0dd74

Browse files
committed
Merge pull request matplotlib#3193 from QuLogic/multi-option-plot_directive
Fix plot directive when used with multiple options.
2 parents 76694a7 + 04d2316 commit 9e0dd74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/sphinxext/plot_directive.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def remove_coding(text):
421421
422422
{% for img in images %}
423423
.. figure:: {{ build_dir }}/{{ img.basename }}.png
424-
{%- for option in options %}
424+
{% for option in options -%}
425425
{{ option }}
426426
{% endfor %}
427427
@@ -447,7 +447,7 @@ def remove_coding(text):
447447
448448
{% for img in images %}
449449
.. image:: {{ build_dir }}/{{ img.basename }}.png
450-
{%- for option in options %}
450+
{% for option in options -%}
451451
{{ option }}
452452
{% endfor %}
453453

0 commit comments

Comments
 (0)