Skip to content

Invalid svg created #1

@ChrisJefferson

Description

@ChrisJefferson

Hi, this seems like a cool project :)

I decided to grab a random ansi file ( https://16colo.rs/pack/laz17/ll-darlaakacrystal.ans in my case) and try running ansi2svg on it. The resulting svg is invalid, I think because the original file has funcky characters?

Looking at the output, the first couple of lines are:

<text x="0px" y="32px" font-weight="normal" width="20px" height="32px" ><tspan>�</tspan></text>
<text x="20px" y="32px" font-weight="normal" width="20px" height="32px" ><tspan>/tspan></text>

So firstly we have a invalid character, but then much worse it looks like there is no character, and the < got eaten from the /tspan close?

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