module_formatter: .rst now correctly handles code examples

- fixed template (it was the template), adding indentation with Jinja2
 - added description of code examples to man-page template (was missing)
 - fixed fireball, cron, and debug module examples to confrom
This commit is contained in:
Jan-Piet Mens 2012-10-18 13:49:19 +02:00
commit 575459465e
5 changed files with 12 additions and 7 deletions

View file

@ -45,9 +45,11 @@
{% for example in examples %}
{% if example['description'] %}<p>@{ example['description'] | html_ify }@</p>{% endif %}
<p><pre>
@{ example['code'] }@
</pre></p>
<p>
<pre>
@{ example['code'] | indent(4, True) }@
</pre>
</p>
{% endfor %}
<br/>