This commit is contained in:
James McCoy
2018-02-02 08:57:17 -05:00
parent 2316a38dd1
commit de10ea55f3

View File

@@ -423,7 +423,7 @@ format_luav = function(v, indent, opts)
if opts.literal_strings then if opts.literal_strings then
ret = v ret = v
else else
quote = opts.dquote_strings and '"' or '\'' local quote = opts.dquote_strings and '"' or '\''
ret = quote .. tostring(v):gsub( ret = quote .. tostring(v):gsub(
opts.dquote_strings and '["\\]' or '[\'\\]', opts.dquote_strings and '["\\]' or '[\'\\]',
'\\%0'):gsub( '\\%0'):gsub(