HText_trimHightext(text, TRUE);
HText_trimHightext(text, TRUE, -1);
PUBLIC void HText_endAppend ARGS1(	HText *,	text){    HTLine *line_ptr;    if (!text)	return;    CTRACE(tfp,"Gridtext: Entering HText_endAppend\n");    /*     *  Create a  blank line at the bottom.     */    new_line(text);    if (text->halted) {	/*	 *  If output was stopped because memory was low, and we made	 *  it to the end of the document, reset those flags and hope	 *  things are better now. - kw	 */	LYFakeZap(NO);	text->halted = 0;    }    /*     *  Get the first line.     */    line_ptr = text->last_line->next;    /*     *  Remove the blank lines at the end of document.     */    while (text->last_line->data[0] == '\0' && text->Lines > 2) {	HTLine *next_to_the_last_line = text->last_line->prev;	CTRACE(tfp, "GridText: Removing bottom blank line: %s\n",			    text->last_line->data);	/*	 *  line_ptr points to the first line.	 */	next_to_the_last_line->next = line_ptr;	line_ptr->prev = next_to_the_last_line;	FREE(text->last_line);	text->last_line = next_to_the_last_line;	text->Lines--;	CTRACE(tfp, "GridText: New bottom line: %s\n",			    text->last_line->data);    }    /*     *  Fix up the anchor structure values and     *  create the hightext strings. - FM     */    HText_trimHightext(text, TRUE);}