Skip to content

Commit

Permalink
Ensure that value is a string when prettifying
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Feb 6, 2018
1 parent 7350a7e commit ce95934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gesture/gesture.script
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local function prettify(t, indentation)
if type(v) == "table" then
s = s .. ("%s%s = {\n%s},\n"):format(indentation, k, prettify(v, indentation .. " "))
else
s = s .. ("%s%s = %s,\n"):format(indentation, k, v)
s = s .. ("%s%s = %s,\n"):format(indentation, k, tostring(v))
end
end
return s
Expand Down

0 comments on commit ce95934

Please sign in to comment.