lo_AppendLineListToLineArray( context, state, NULL);
lo_AppendLineListToLineArray( context, state, lo_GetLastElementInList(state->line_list) );
lo_CloseOutLayout(MWContext *context, lo_DocState *state){	lo_FlushLineBuffer(context, state);	/*	 * makes sure we are at the bottom	 * of everything in the document.	 *	 * Only close forms if we aren't in a subdoc because	 * forms can span subdocs.	 */	if ((state->is_a_subdoc == SUBDOC_NOT)&&		(state->top_state->in_form != FALSE))	{		lo_EndForm(context, state);	}	lo_SetLineBreakState( context, state, FALSE, LO_LINEFEED_BREAK_SOFT, 1, FALSE);	lo_ClearToBothMargins(context, state);	/* 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 (state->line_list != NULL)		lo_AppendLineListToLineArray( context, state, NULL);}