make comment lines in troff start with .\" and add a .SH EXAMPLES to the PLAINEXAMPLES section

pull/4765/head
Michael Vogt 11 years ago
parent 3722bebb1d
commit b8e641136a

@ -1,16 +1,16 @@
.TH ANSIBLE.@{ module | upper }@ 3 "@{ now_date }@" "@{ ansible_version }@" "ANSIBLE MODULES" .TH ANSIBLE.@{ module | upper }@ 3 "@{ now_date }@" "@{ ansible_version }@" "ANSIBLE MODULES"
." generated from @{ filename }@ .\" generated from @{ filename }@
.SH NAME .SH NAME
@{ module }@ \- @{ short_description }@ @{ module }@ \- @{ short_description }@
." ------ DESCRIPTION .\" ------ DESCRIPTION
.SH DESCRIPTION .SH DESCRIPTION
{% for desc in description %} {% for desc in description %}
.PP .PP
@{ desc | jpfunc }@ @{ desc | jpfunc }@
{% endfor %} {% endfor %}
." ------ OPTIONS .\" ------ OPTIONS
." .\"
." .\"
{% if options %} {% if options %}
.SH OPTIONS .SH OPTIONS
{% for k in option_keys %} {% for k in option_keys %}
@ -30,9 +30,9 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
." .\"
." .\"
." ------ NOTES .\" ------ NOTES
{% if notes %} {% if notes %}
.SH NOTES .SH NOTES
{% for note in notes %} {% for note in notes %}
@ -40,9 +40,9 @@
@{ note | jpfunc }@ @{ note | jpfunc }@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
." .\"
." .\"
." ------ EXAMPLES .\" ------ EXAMPLES
{% if examples is defined %} {% if examples is defined %}
.SH EXAMPLES .SH EXAMPLES
{% for e in examples %} {% for e in examples %}
@ -56,14 +56,15 @@
.fi .fi
{% endfor %} {% endfor %}
{% endif %} {% endif %}
." ------ PLAINEXAMPLES .\" ------ PLAINEXAMPLES
{% if plainexamples is defined %} {% if plainexamples is defined %}
.SH EXAMPLES
.nf .nf
@{ plainexamples }@ @{ plainexamples }@
.fi .fi
{% endif %} {% endif %}
." ------- AUTHOR .\" ------- AUTHOR
{% if author is defined %} {% if author is defined %}
.SH AUTHOR .SH AUTHOR
@{ author }@ @{ author }@

Loading…
Cancel
Save