Skip to content

Commit

Permalink
Merge pull request #192 from sparkprime/fix_format_percent
Browse files Browse the repository at this point in the history
Fix #190
  • Loading branch information
sparkprime committed May 24, 2016
2 parents bd6ae83 + 45918f4 commit f28c010
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stdlib/std.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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) =
Expand Down

0 comments on commit f28c010

Please sign in to comment.