~alcinnz/CatTrap

83daa6d33bcbde404e89a8bee52bdef312ece541 — Adrian Cochrane 1 year, 9 months ago e0d43db
Fix for mixed-child elements on stripping out extraneous whitespace.
1 files changed, 1 insertions(+), 1 deletions(-)

M Graphics/Layout/CSS.hs
M Graphics/Layout/CSS.hs => Graphics/Layout/CSS.hs +1 -1
@@ 204,7 204,7 @@ finalizeChilds root parent childs@(child:childs')
        -- FIXME propagate display properties, how to handle the hierarchy.
        [LayoutInline temp parent self (repeat temp)]
    | (inlines@(_:_), blocks) <- spanInlines childs,
        Just self <- finalizeParagraph (flattenTree childs) parent  =
        Just self <- finalizeParagraph (flattenTree inlines) parent  =
            LayoutInline temp parent self [] : finalizeChilds root parent blocks
    | (StyleTree { style = CSSBox { display = Inline } }:childs') <- childs =
        finalizeChilds root parent childs' -- Inline's all whitespace...