Fix for bug 129639: Only add the new linefeed for preformatted text inside

lo_RelayoutTextElements().  This fixes the extra line feeds that were
being generated for regular text.
This commit is contained in:
nisheeth%netscape.com 1998-08-04 19:01:27 +00:00
parent f76f781af8
commit 8ebdc55ae8

View File

@ -4951,8 +4951,11 @@ void lo_RelayoutTextElements ( MWContext * context,
element->lo_any.next = NULL;
lo_RecycleElements( context, state, element );
/* and then add a new linefeed */
lo_rl_AddSoftBreakAndFlushLine ( context, state );
/* Fix for bug 129639: Only add the new linefeed for preformatted text.
Calling lo_rl_AddSoftBreakAndFlushLine() causes extra line feeds to
be generated for regular text. */
if (fastPreformat)
lo_rl_AddSoftBreakAndFlushLine ( context, state );
break;