lo_AppendLineListToLineArray( relay_state->context, relay_state->doc_state, NULL);
lo_AppendLineListToLineArray( relay_state->context, relay_state->doc_state, lo_GetLastElementInList(relay_state->doc_state->line_list) );
LO_Element * lo_rl_FitCell( lo_RelayoutState *relay_state, LO_Element *lo_ele ){	LO_CellStruct *cell = (LO_CellStruct *)lo_ele;	lo_TableRec *table = (lo_TableRec *) cell->table;	MWContext *context = relay_state->context;	lo_DocState *state = relay_state->doc_state;	LO_Element *first;	LO_Element *next = lo_tv_GetNextLayoutElement(relay_state->doc_state, lo_ele, TRUE);	XP_ASSERT( lo_ele->lo_any.type == LO_CELL );		lo_InitForBeginCell((lo_TableRow *)cell->table_row, (lo_TableCell *)cell->table_cell);	lo_InitSubDocForBeginCell(context, state, table );	/* Copy over line lists, float lists to substate */	lo_rl_CopyCellToState( cell, state->sub_state );	/* Replace current doc. state with substate */	relay_state->doc_state = state->sub_state;	/* Fit layout elements on substate */	first = lo_tv_GetFirstLayoutElement(relay_state->doc_state);	lo_rl_FitLayoutElements(relay_state, first);	/* Dummy Floating elements on a new line at the end of a document were not getting put into	   the line_array.  This code should ensure that anything left on the line_list gets flushed	   to the line_array. */	if (relay_state->doc_state->line_list != NULL)		lo_AppendLineListToLineArray( relay_state->context, relay_state->doc_state, NULL);	/* Restore relay state to original state */	lo_rl_CopyStateToCell( relay_state->doc_state, cell );	relay_state->doc_state = state;	lo_EndTableCell( context, state->sub_state, TRUE );	return next;}