X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FPacker.js;h=61546d45785c668f7be01f41045c79f788da4cc5;hb=15cc68e7310b9f592d6f03b968ce2b2e6424a942;hp=48df366952a7ae386dd8bd50c0c51fc4e2c4227c;hpb=42bfc299c675a4ceb0a026847eada6fbedeaf344;p=gnome.introspection-doc-generator 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) {