|
8 | 8 | {% if choices is mapping %}
|
9 | 9 | {% for choice, desc in choices | dictsort %}
|
10 | 10 | {% if not has_no_default and ((default_value is not list and default_value == choice) or (default_value is list and choice in default_value)) %}
|
11 |
| - - :ansible-option-default-bold:`@{ choice | antsibull_to_json | rst_escape(escape_ending_whitespace=true) }@` :ansible-option-default:`(default)`\ : |
| 11 | + - :ansible-option-choices-entry-default:`@{ choice | antsibull_to_json | rst_escape(escape_ending_whitespace=true) }@` :ansible-option-choices-default-mark:`(default)`\ : |
12 | 12 | {% else %}
|
13 | 13 | - :ansible-option-choices-entry:`@{ choice | antsibull_to_json | rst_escape(escape_ending_whitespace=true) }@`\ :
|
14 | 14 | {% endif %}
|
|
20 | 20 | {% else %}
|
21 | 21 | {% for choice in choices %}
|
22 | 22 | {% if not has_no_default and ((default_value is not list and default_value == choice) or (default_value is list and choice in default_value)) %}
|
23 |
| - - :ansible-option-default-bold:`@{ choice | antsibull_to_json | rst_escape(escape_ending_whitespace=true) }@` :ansible-option-default:`← (default)` |
| 23 | + - :ansible-option-choices-entry-default:`@{ choice | antsibull_to_json | rst_escape(escape_ending_whitespace=true) }@` :ansible-option-choices-default-mark:`← (default)` |
24 | 24 | {% else %}
|
25 | 25 | - :ansible-option-choices-entry:`@{ choice | antsibull_to_json | rst_escape(escape_ending_whitespace=true) }@`
|
26 | 26 | {% endif %}
|
|
35 | 35 | {% for choice, desc in choices | dictsort %}
|
36 | 36 | <li>
|
37 | 37 | {% if not has_no_default and ((default_value is not list and default_value == choice) or (default_value is list and choice in default_value)) %}
|
38 |
| - <p><span class="ansible-option-default-bold">@{ choice | antsibull_to_json | escape }@</span> <span class="ansible-option-default">(default)</span>: |
| 38 | + <p><code class="ansible-value literal notranslate ansible-option-default-bold">@{ choice | antsibull_to_json | escape }@</code> <span class="ansible-option-choices-default-mark">(default)</span>: |
39 | 39 | {% else %}
|
40 |
| - <p><span class="ansible-option-choices-entry">@{ choice | antsibull_to_json | escape }@</span>: |
| 40 | + <p><code class="ansible-value literal notranslate ansible-option-choices-entry">@{ choice | antsibull_to_json | escape }@</code>: |
41 | 41 | {% endif %}
|
42 | 42 | @{ desc | first | default('') | html_ify | indent(10, blank=true) }@</p>
|
43 | 43 | {% for line in desc[1:] %}
|
|
48 | 48 | {% else %}
|
49 | 49 | {% for choice in choices %}
|
50 | 50 | {% if not has_no_default and ((default_value is not list and default_value == choice) or (default_value is list and choice in default_value)) %}
|
51 |
| - <li><p><span class="ansible-option-default-bold">@{ choice | antsibull_to_json | escape }@</span> <span class="ansible-option-default">← (default)</span></p></li> |
| 51 | + <li><p><code class="ansible-value literal notranslate ansible-option-default-bold">@{ choice | antsibull_to_json | escape }@</code> <span class="ansible-option-choices-default-mark">← (default)</span></p></li> |
52 | 52 | {% else %}
|
53 |
| - <li><p><span class="ansible-option-choices-entry">@{ choice | antsibull_to_json | escape }@</span></p></li> |
| 53 | + <li><p><code class="ansible-value literal notranslate ansible-option-choices-entry">@{ choice | antsibull_to_json | escape }@</code></p></li> |
54 | 54 | {% endif %}
|
55 | 55 | {% endfor %}
|
56 | 56 | {% endif %}
|
|
0 commit comments