Skip to content

Commit

Permalink
Fix rendering of zero-width blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mellthas committed Nov 17, 2021
1 parent a18630f commit 6e652a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FrameDecorator/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function add_frame_to_line(Frame $frame)

// FIXME: Why? Doesn't quite seem to be the correct thing to do,
// but does appear to be necessary. Hack to handle wrapped white space?
if ($w == 0 && $frame->get_node()->nodeName !== "hr" && !$frame->is_pre()) {
if ($w === 0.0 && $frame->is_text_node() && !$frame->is_pre()) {
return;
}

Expand Down

0 comments on commit 6e652a2

Please sign in to comment.