span = Integer.toString( 5 - level );
}
writeStartTag( TABLE_CELL_TAG, "number-columns-spanned", span, "toc.cell" );
MutableAttributeSet atts = getFoConfiguration().getAttributeSet( "toc.h" + level + ".style" );
atts.addAttribute( "text-align-last", "justify" );
writeStartTag( BLOCK_TAG, atts );
writeStartTag( BASIC_LINK_TAG, "internal-destination", ref );
text( tocItem.getName() );
writeEndTag( BASIC_LINK_TAG );
writeEmptyTag( LEADER_TAG, "toc.leader.style" );