dompdf/dompdf — pull request #581 by mechjagger (2013-01-11 18:51:55+00:00)
Title: Multi styled text runs together due to spaces being trimmed.

This is in relation to an issue I posted last year:
https://github.com/dompdf/dompdf/issues/475

At first it seemed like a font metric but is due to text_frame_reflower right trimming strings in cases where a tag is in a tag. Example:

THIS IS BOLD,

UNDERLINED AND ITALIC

becomes

THIS IS BOLD,

UNDERLINED ANDITALIC

This same problem seems to have been commented out in the past regarding left trimmed strings which is visible just a few lines down from the one I commented out.