Skip to content

CssInline.inlineFragment(html, css) fails silently if html contains leading whitespace #692

@morrica

Description

@morrica

Using Java bindings CssInline.inlineFragment(html, css) returns a single space character if the html fragment begins with whitespace. I suspect this may be related to #388 as they are both returning an empty result.

Version: css-inline-0.20.1-SNAPSHOT.jar

The following returns a single space (' '): CssInline.inlineFragment(" <h1>Hello World!</h1>", "h1 { color: blue; }");

This returns the fragment with the inlined css: CssInline.inlineFragment("<h1>Hello World!</h1>", "h1 { color: blue; }");

The only difference is that the failing case contains leading whitespace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions