Linebreak \n no longer supported?

I see that line breaks (“\n”) are no longer supported in Graphviz - 520 error. Is there an alternative to this?

Hi @Espen007, make sure your graph is fully URL-encoded. That should solve the problem.

Here’s an example with newlines:

https://quickchart.io/graphviz?graph=digraph%20%7B%20n%5Blabel%3D%22two%5Cnlines%22%5D%20%22on%5Cnthree%5Cnlines%22%20%7D

With this URL-encoded payload:

digraph { n[label="two\nlines"] "on\nthree\nlines" }

Thanks :slight_smile: That worked!