Allows makeinfo to render lists (itemize & enumerate) without empty line between items. Useful for text & info output. diff -u texinfo-4.8.orig/makeinfo/insertion.c texinfo-4.8/makeinfo/insertion.c --- texinfo-4.8.orig/makeinfo/insertion.c Thu Nov 11 20:34:28 2004 +++ texinfo-4.8/makeinfo/insertion.c Sun Nov 6 21:24:22 2005 @@ -2188,7 +2188,7 @@ xml_begin_item (); else { - start_paragraph (); + start_itemize_paragraph(); kill_self_indent (-1); filling_enabled = indented_fill = 1; diff -u texinfo-4.8.orig/makeinfo/makeinfo.c texinfo-4.8/makeinfo/makeinfo.c --- texinfo-4.8.orig/makeinfo/makeinfo.c Sun Dec 19 19:15:42 2004 +++ texinfo-4.8/makeinfo/makeinfo.c Sun Nov 6 21:23:40 2005 @@ -3160,6 +3160,56 @@ must_start_paragraph = 0; } +/* Begin a new paragraph for itemize. + This is identical to start_paragraph() except for + leaving no blank lines between itemize paragraphs. */ + void +start_itemize_paragraph (void) +{ + /* First close existing one. */ + if (paragraph_is_open) + close_single_paragraph (); + + /* In either case, the insertion paragraph is no longer closed. */ + insertion_paragraph_closed = 0; + + /* However, the paragraph is open! */ + paragraph_is_open = 1; + + /* If we MUST_START_PARAGRAPH, that simply means that + start_itemize_paragraph () + had to be called before we would allow any other paragraph operations + to have an effect. */ + if (!must_start_paragraph) + { + int amount_to_indent = 0; + + /* If doing indentation, then insert the appropriate amount. */ + if (!no_indent) + { + if (inhibit_paragraph_indentation) + { + amount_to_indent = current_indent; + if (inhibit_paragraph_indentation < 0) + inhibit_paragraph_indentation++; + } + else if (paragraph_start_indent < 0) + amount_to_indent = current_indent; + else + amount_to_indent = current_indent + paragraph_start_indent; + + if (amount_to_indent >= output_column) + { + amount_to_indent -= output_column; + indent (amount_to_indent); + output_column += amount_to_indent; + } + } + } + else + must_start_paragraph = 0; +} + /* Insert the indentation specified by AMOUNT. */ void indent (int amount) Common subdirectories: texinfo-4.8.orig/makeinfo/tests and texinfo-4.8/makeinfo/tests