[anjuta] Fix white space issue with JavaScript wizard in class-gen



commit 8ee816de0cb7508360714d283ac894e2636713bd
Author: Kenny Meyer <knny myer gmail com>
Date:   Wed Dec 22 13:21:08 2010 -0300

    Fix white space issue with JavaScript wizard in class-gen

 plugins/class-gen/templates/js-source.tpl |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/class-gen/templates/js-source.tpl b/plugins/class-gen/templates/js-source.tpl
index 58827f4..32c3658 100644
--- a/plugins/class-gen/templates/js-source.tpl
+++ b/plugins/class-gen/templates/js-source.tpl
@@ -27,15 +27,15 @@
 [+ == "LGPL" +][+(lgpl (get "ProjectName") (get "AuthorName") " * ")+]
 [+ == "GPL"  +][+(gpl  (get "ProjectName")                    " * ")+]
 [+ESAC+] */
-
 [+
 FOR Imports +][+
     IF (not (=(get "Name") "")) +]
 const [+Name+] = imports.[+Module+];[+
-    ENDIF+][+
-ENDFOR+]
-
+    IF (last-for?) +]
 [+
+        ENDIF+][+
+    ENDIF+][+
+ENDFOR+][+
 IF (not (=(get "BaseClass") "")) +]
 function [+BaseClass+]([+Initargs+]){
     this._init([+Initargs+]);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]