From 6e652a242bb906454f033f8cb24226717b9f2e23 Mon Sep 17 00:00:00 2001 From: Till Berger Date: Wed, 17 Nov 2021 18:40:40 +0100 Subject: [PATCH] Fix rendering of zero-width blocks --- src/FrameDecorator/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FrameDecorator/Block.php b/src/FrameDecorator/Block.php index aa6b7b604..1a7c5acf7 100644 --- a/src/FrameDecorator/Block.php +++ b/src/FrameDecorator/Block.php @@ -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; }