minor bugfix in LinkItem having to do with placement of indents
This commit is contained in:
parent
9d34cc35f0
commit
3da20de189
|
@ -138,6 +138,8 @@ class LinkItem implements ComponentRender, ColorSelectors
|
||||||
|
|
||||||
public void renderHere(Writer out, RenderData rdat) throws IOException
|
public void renderHere(Writer out, RenderData rdat) throws IOException
|
||||||
{
|
{
|
||||||
|
for (int i=0; i<indent; i++)
|
||||||
|
out.write(" "); // do indent
|
||||||
if (enabled)
|
if (enabled)
|
||||||
{ // write the opening <A> and <FONT> tags
|
{ // write the opening <A> and <FONT> tags
|
||||||
out.write("<A HREF=\"");
|
out.write("<A HREF=\"");
|
||||||
|
@ -156,8 +158,6 @@ class LinkItem implements ComponentRender, ColorSelectors
|
||||||
} // end if
|
} // end if
|
||||||
else // write the "disabled" indicator
|
else // write the "disabled" indicator
|
||||||
out.write("<FONT COLOR=\"" + rdat.getStdColor(CONTENT_DISABLED) + "\">");
|
out.write("<FONT COLOR=\"" + rdat.getStdColor(CONTENT_DISABLED) + "\">");
|
||||||
for (int i=0; i<indent; i++)
|
|
||||||
out.write(" "); // do indent
|
|
||||||
contents.renderHere(out,rdat);
|
contents.renderHere(out,rdat);
|
||||||
out.write("</FONT>");
|
out.write("</FONT>");
|
||||||
if (enabled)
|
if (enabled)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user