the following patch changes the behavior of the @center command when
processed by makeinfo. writing @center lines as separate paragraphs
looks wrong in info/text especially.
1999-10-01 W. L. Estes <[EMAIL PROTECTED]>
* (makeinfo/cmds.c): dont treat @center as separate paragraph,
use div element to output center
--- texinfo-4.0/makeinfo/cmds.c.orig Sun Sep 19 12:39:35 1999
+++ texinfo-4.0/makeinfo/cmds.c Thu Sep 30 11:35:51 1999
@@ -860,7 +860,7 @@
/* Start a new line with just this text on it.
Then center the line of text.
- This always ends the current paragraph. */
+ */
void
cm_center ()
{
@@ -870,13 +870,12 @@
int save_filling_enabled = filling_enabled;
int fudge_factor = 1;
- close_paragraph ();
filling_enabled = indented_fill = 0;
cm_noindent ();
start = output_paragraph_offset;
if (html)
- add_word ("<p align=\"center\">");
+ add_word ("<div align=\"center\">");
inhibit_output_flushing ();
get_rest_of_line (0, (char **)&line);
@@ -884,7 +883,7 @@
free (line);
uninhibit_output_flushing ();
if (html)
- add_word ("</p>");
+ add_word ("</div>");
else
{
@@ -914,7 +913,6 @@
}
insert ('\n');
- close_paragraph ();
filling_enabled = save_filling_enabled;
indented_fill = save_indented_fill;
}