chiark / gitweb /
jstest: lower: script: fix multiple pieces
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 Jul 2021 13:42:33 +0000 (14:42 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 Jul 2021 13:42:33 +0000 (14:42 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
jstest/jst-lower.rs

index 98e7f3474b6af14b8aa3ba4fa6ea2f3dabeee381..0fc767f7985295282a00bcc87182d99e52f57677 100644 (file)
@@ -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);