From: Alan Knowles Date: Thu, 18 Aug 2011 08:49:40 +0000 (+0800) Subject: JSDOC/Packer.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=15cc68e7310b9f592d6f03b968ce2b2e6424a942 JSDOC/Packer.js --- diff --git a/JSDOC/Packer.js b/JSDOC/Packer.js index 48df366..61546d4 100644 --- a/JSDOC/Packer.js +++ b/JSDOC/Packer.js @@ -280,13 +280,18 @@ Packer.prototype = { } var str = File.read(file); var str = this.pack(str, file, minfile); + + if (str.length) { File.write(minfile, str); } - } + } + + // if we are translating, write the translations strings at the top + // of the file.. if (this.translateJSON) {