From: Ian Jackson Date: Fri, 9 Jul 2021 13:42:33 +0000 (+0100) Subject: jstest: lower: script: fix multiple pieces X-Git-Tag: otter-0.7.2~211 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cdb6522dd57843ed2190ae81cb4fee8eafa47ad6;p=otter.git jstest: lower: script: fix multiple pieces Signed-off-by: Ian Jackson --- diff --git a/jstest/jst-lower.rs b/jstest/jst-lower.rs index 98e7f347..0fc767f7 100644 --- a/jstest/jst-lower.rs +++ b/jstest/jst-lower.rs @@ -194,11 +194,13 @@ fake_dom[{{ loop.index0 }}].nextElementSibling = fake_dom[{{ loop.index }}]; {%- endfor %} fake_dom[{{ pieces | length }}].nextElementSibling = fake_dom[{{ pieces | length + 1 }}]; -{% for t in targets -%} uorecord = { - targets: ['{{ t }}'], -}; + targets: [ +{%- for t in targets %} + '{{ t }}', {%- endfor %} + ], +}; lower_targets(uorecord);