You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Text before an inline element is drawn in its colour when a table or page break inside the element ends the line #676
Text before an inline element is drawn in that element's colour, and covered by its link, when the line is ended by a table or a page break inside the element.
In both documents zz is drawn red, although it is outside the span. Reproduced on gravitypdf at bce6e78 with #653 applied, cssMode standard. <columns> inside a span does the same.
Mpdf::_saveTextBuffer() records a colour only when colorarray is set, and a link only when HREF is set, and printbuffer() changes colour and link only for chunks that carry one. Text in the default colour, or with no link, is drawn in whatever state is current when the buffer is printed, which here is the span's.
#653 fixes this for a block opened inside an inline element by restoring the enclosing block's state before the line is printed. A general fix would have printbuffer() draw chunks that carry no colour or link in the block's own state, or have _saveTextBuffer() always record them.
Activity