Skip to content

Cover the case when SVG starts with a comment #9

@shamansir

Description

@shamansir

Sometimes SVG file starts with a comment (SvgComment) and so it's not passing the check in the first branch of the case statement:

    case parseToNode (accessor icons) of
        Ok (SvgElement element) -> ...
        _ -> text ""

This results in empty content when SVG is rendered. Please notice that in the README or cover it with an additional case-branch.

Thank you for the loader!

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