build(docs-infra): break long CLI options onto two lines (#26272)

PR Close #26272
This commit is contained in:
Pete Bacon Darwin 2018-10-05 13:50:56 +01:00 committed by Alex Rickabaugh
parent 3f89aeb80a
commit b9bd95b3b2
1 changed files with 3 additions and 2 deletions

View File

@ -72,7 +72,8 @@
{%- endmacro %}
{%- macro renderValues(values, default) -%}
{$ values.join('|') $}
{%- set valString = values.join('|') -%}
{%- if valString.length > 15 %}<br> {% endif %}{$ valString $}
{%- endmacro -%}
{%- macro renderOption(name, type, default, values) -%}
@ -81,7 +82,7 @@
{%- elif values.length -%}
{$ prefix $}{$ name $}={$ renderValues(values, default) $}
{%- elif type === 'string' -%}
<var>{$ name $}</var>
{$ prefix $}{$ name $}={% if name.length > 15 %}<br> {% endif %}<var>{$ name $}</var>
{%- else -%}
{$ prefix $}{$ name $}
{%- endif -%}