minor bugfix in LinkItem having to do with placement of indents

This commit is contained in:
Eric J. Bowersox 2001-12-05 07:14:58 +00:00
parent 9d34cc35f0
commit 3da20de189

View File

@ -138,6 +138,8 @@ class LinkItem implements ComponentRender, ColorSelectors
public void renderHere(Writer out, RenderData rdat) throws IOException
{
for (int i=0; i<indent; i++)
out.write("&nbsp;"); // do indent
if (enabled)
{ // write the opening <A> and <FONT> tags
out.write("<A HREF=\"");
@ -156,8 +158,6 @@ class LinkItem implements ComponentRender, ColorSelectors
} // end if
else // write the "disabled" indicator
out.write("<FONT COLOR=\"" + rdat.getStdColor(CONTENT_DISABLED) + "\">");
for (int i=0; i<indent; i++)
out.write("&nbsp;"); // do indent
contents.renderHere(out,rdat);
out.write("</FONT>");
if (enabled)