From b9bd95b3b23c8ba416d5d297bbf01385166f00b6 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 5 Oct 2018 13:50:56 +0100 Subject: [PATCH] build(docs-infra): break long CLI options onto two lines (#26272) PR Close #26272 --- aio/tools/transforms/templates/cli/lib/cli.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aio/tools/transforms/templates/cli/lib/cli.html b/aio/tools/transforms/templates/cli/lib/cli.html index 2658791fa3..b95313895f 100644 --- a/aio/tools/transforms/templates/cli/lib/cli.html +++ b/aio/tools/transforms/templates/cli/lib/cli.html @@ -72,7 +72,8 @@ {%- endmacro %} {%- macro renderValues(values, default) -%} -{$ values.join('|') $} +{%- set valString = values.join('|') -%} +{%- if valString.length > 15 %}
{% endif %}{$ valString $} {%- endmacro -%} {%- macro renderOption(name, type, default, values) -%} @@ -81,7 +82,7 @@ {%- elif values.length -%} {$ prefix $}{$ name $}={$ renderValues(values, default) $} {%- elif type === 'string' -%} -{$ name $} +{$ prefix $}{$ name $}={% if name.length > 15 %}
{% endif %}{$ name $} {%- else -%} {$ prefix $}{$ name $} {%- endif -%}