Skip to content

Backslash must be escaped for dotdiff #377

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

Closed
martinclauss opened this issue Nov 4, 2024 · 1 comment
Closed

Backslash must be escaped for dotdiff #377

martinclauss opened this issue Nov 4, 2024 · 1 comment
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
@jrfaller
Copy link
Member

jrfaller commented Feb 4, 2025

Normally, fixed by fb83264.

@jrfaller jrfaller closed this as completed Feb 4, 2025
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