Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backslash must be escaped for dotdiff #377

Open
martinclauss opened this issue Nov 4, 2024 · 0 comments
Open

Backslash must be escaped for dotdiff #377

martinclauss opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels

Comments

@martinclauss
Copy link

Hey :)

I have the following exemplary C file /tmp/a.c:

int main() {
    //12345678\foo
    return 0;
}

For simplicity I diff the file with itself:

gumtree dotdiff /tmp/a.c /tmp/a.c > /tmp/diff.dot

This generates a dot file with the following line:

...
		n_src_7 [label="comment: //12345678\", color=lightgrey];
...

Now the backslash being at this very specific place escapes the quote... which leads to an error:

dot -T png /tmp/diff.dot -o /tmp/diff.png
Error: /tmp/diff.dot: syntax error in line 25 near '['

Maybe this can be fixed somehow :)

Thanks!

@jrfaller jrfaller added the bug label Nov 8, 2024
@jrfaller jrfaller self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants