mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 19:20:13 +00:00
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:
parent
f76f781af8
commit
8ebdc55ae8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user