From 45918f400a1a67a045d6d329685c93a45c3e76e4 Mon Sep 17 00:00:00 2001 From: Dave Cunningham Date: Tue, 24 May 2016 13:37:43 -0400 Subject: [PATCH] Fix #190 --- stdlib/std.jsonnet | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stdlib/std.jsonnet b/stdlib/std.jsonnet index 4e4d092b7..1f04b273d 100644 --- a/stdlib/std.jsonnet +++ b/stdlib/std.jsonnet @@ -546,7 +546,12 @@ limitations under the License. pad_right(s, tmp.fw, " ") else pad_left(s, tmp.fw, " "); - format_codes_arr(codes, arr, i + 1, j2 + 1, v + s_padded) tailstrict; + local j3 = + if code.ctype == "%" then + j2 + else + j2 + 1; + format_codes_arr(codes, arr, i + 1, j3, v + s_padded) tailstrict; // Render a parsed format string with an object of values. local format_codes_obj(codes, obj, i, v) =