Author: jacopoc
Date: Wed Jul 23 09:48:00 2008
New Revision: 679127
URL:
http://svn.apache.org/viewvc?rev=679127&view=revLog:
Formatting fixes.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlTreeRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlTreeRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlTreeRenderer.java?rev=679127&r1=679126&r2=679127&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlTreeRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlTreeRenderer.java Wed Jul 23 09:48:00 2008
@@ -239,7 +239,7 @@
} else {
writer.append(target);
}
- } else if (urlMode != null && urlMode.equalsIgnoreCase("content")) {
+ } else if (urlMode != null && urlMode.equalsIgnoreCase("content")) {
StringBuffer newURL = new StringBuffer();
ContentUrlTag.appendContentPrefix(req, newURL);
newURL.append(target);
@@ -257,22 +257,19 @@
} else {
writer.append(target);
}
-
writer.append("\"");
}
writer.append(">");
// the text
ModelTree.ModelNode.Image img = link.getImage();
- if (img == null)
+ if (img == null) {
writer.append(link.getText(context));
- else
+ } else {
renderImage(writer, context, img);
-
+ }
// close tag
writer.append("</a>");
-
-// appendWhitespace(writer);
}
public void renderImage(Appendable writer, Map<String, Object> context, ModelTree.ModelNode.Image image) throws IOException {
@@ -336,7 +333,6 @@
} else {
writer.append(src);
}
-
writer.append("\"");
}
writer.append("/>");
@@ -344,7 +340,6 @@
}
public ScreenStringRenderer getScreenStringRenderer(Map<String, Object> context) {
-
ScreenRenderer screenRenderer = (ScreenRenderer)context.get("screens");
if (screenRenderer != null) {
screenStringRenderer = screenRenderer.getScreenStringRenderer();