From: Alan Knowles Date: Tue, 27 Jul 2010 05:06:11 +0000 (+0800) Subject: JSDOC/Packer.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=d1b003e3498ec29e929d0643d85b36c61fdd49c0 JSDOC/Packer.js --- diff --git a/JSDOC/Packer.js b/JSDOC/Packer.js index d79a225..a89722f 100644 --- a/JSDOC/Packer.js +++ b/JSDOC/Packer.js @@ -443,10 +443,10 @@ Packer.prototype = { File.write(transmd5, ''); for(v in map) { - File.append(transfile, l + "\n\t \"" + v + '" : "' + v + '"'); + File.append(transfile, l + "\n\t" + JSON.stringify(v) + " : " + JSON.stringify(v)); l = ','; // strings are raw... - as the where encoded to start with!!! - File.append(transmd5, '_T["' + this.md5(ffn + '-' + v) + '"]="'+v+"\";\n"); + File.append(transmd5, '_T["' + this.md5(ffn + '-' + v) + '"]='+JSON.stringify(v)+";\n"); } File.append(transfile, "\n},"); // always one trailing..