Issue with whitespaces and byteoffset #75
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
I try to use miette with a parser, if the node parsed is of type error then I use miette to render the error. I have an issue because in miette it seems you're skipping '\n' and whitespaces into the source code. Then when I try to specify my SourceSpan thanks to the byte position it doesn't work at all because it the byte position with whitespaces and in your code you use the source_code string without any whitespaces.
How can I do this correctly ?
example of my code:
The text was updated successfully, but these errors were encountered: