\r
public HTMLGen imports(Imports imports) {\r
//this.imports=imports;\r
- for(String str : imports.css) {\r
+ for (String str : imports.css) {\r
forward.print("<link rel=\"stylesheet\" href=\"");\r
forward.print(imports.themePath(null));\r
forward.print(str);\r
forward.println("\">");\r
}\r
\r
- for(String str : imports.js) {\r
+ for (String str : imports.js) {\r
forward.print("<script type=\"text/javascript\" src=\"");\r
forward.print(imports.themePath(null));\r
forward.print(str);\r
\r
public HTMLGen jsVars(String ... attrs) {\r
forward.println("<script type=text/javascript>");\r
- if(attrs!=null) {\r
- for(int i=0; i<attrs.length;++i) {\r
+ if (attrs!=null) {\r
+ for (int i=0; i<attrs.length;++i) {\r
forward.append(' ');\r
String[] split = attrs[i].split("=",2);\r
switch(split.length) {\r
forward.append(tag);\r
addAttrs(attrs);\r
forward.append('>');\r
- if(pretty) {\r
+ if (pretty) {\r
forward.println();\r
}\r
return this;\r
\r
public Mark divID(String ... attrs) {\r
Mark div;\r
- if(attrs.length>0) {\r
+ if (attrs.length>0) {\r
div = new Mark(attrs[0]);\r
attrs[0]="id="+attrs[0];\r
} else {\r
nattrs[0]="id="+id;\r
nattrs[1]="name="+id;\r
System.arraycopy(attrs, 0, nattrs, 2, attrs.length);\r
- if(required) {\r
+ if (required) {\r
nattrs[nattrs.length-1]="required";\r
}\r
incr(mtd);\r
// Common tags that do not have standard endings. These are here to help people who don't know to pick directive \r
public HTMLGen br() {\r
forward.append("<br>");\r
- if(pretty) {\r
+ if (pretty) {\r
forward.println();\r
}\r
return this;\r
\r
public HTMLGen p(String ... text) {\r
forward.append("<p>");\r
- for(String s : text) {\r
+ for (String s : text) {\r
forward.append(s);\r
}\r
- if(pretty) {\r
+ if (pretty) {\r
forward.println();\r
}\r
return this;\r
\r
public HTMLGen hr() {\r
forward.append("<hr>");\r
- if(pretty) {\r
+ if (pretty) {\r
forward.println();\r
}\r
return this;\r
// try {\r
// forward.print("<style>");\r
// prettyln(forward);\r
-// while((line=br.readLine())!=null) {\r
+// while ((line=br.readLine())!=null) {\r
// forward.print((pretty?line:line.trim()));\r
// prettyln(forward);\r
// } \r