Hi BJ, That's what the method renderFormatEmptySpace current does:
public void renderFormatEmptySpace(StringBuffer buffer, Map context, ModelForm modelForm) { buffer.append(" "); } Best regards, Chris BJ Freeman wrote: > > how about ;&nspb for blanks > > > > > snowch sent the following on 5/6/2009 3:14 PM: >> Hi Forum, >> >> I have made a small change to HtmlFormRenderer.java to fix the ugly IE >> table >> empty cell rendering for ofbiz release 4.0. Unfortunately, my code is >> not >> synched with SVN so I can't submit a patch. My changes below are pretty >> obvious though. >> >> Regards, >> >> Chris >> >> >> public void renderDisplayField(StringBuffer buffer, Map context, >> DisplayField displayField) { >> ModelFormField modelFormField = displayField.getModelFormField(); >> >> StringBuffer str = new StringBuffer(); >> >> if (UtilValidate.isNotEmpty(modelFormField.getWidgetStyle()) || >> modelFormField.shouldBeRed(context)) { >> str.append(""); >> } >> >> if (str.length() > 0) { >> buffer.append(str); >> } >> String description = displayField.getDescription(context); >> // CHS FIX - START >> if (description.trim().equals("")) { >> this.renderFormatEmptySpace(buffer, context, >> modelFormField.getModelForm()); >> } >> // CHS FIX - END >> //Replace new lines with <br> >> description = description.replaceAll("\n", "<br>"); >> buffer.append(description); >> if (str.length() > 0) { >> buffer.append(""); >> } >> >> if (displayField instanceof DisplayEntityField) { >> this.makeHyperlinkString(buffer, ((DisplayEntityField) >> displayField).getSubHyperlink(), context); >> } >> >> this.appendTooltip(buffer, context, modelFormField); >> >> //this.appendWhitespace(buffer); >> } >> > > -- > BJ Freeman > http://www.businessesnetwork.com/automation > http://bjfreeman.elance.com > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > Systems Integrator. > > > -- View this message in context: http://www.nabble.com/IE-ugly-rendering-of-emptycells-tp23416599p23419881.html Sent from the OFBiz - Dev mailing list archive at Nabble.com.