Escape diff strings in graphviz
This commit is contained in:
parent
6bcdcc73bd
commit
997c6a8821
1 changed files with 1 additions and 0 deletions
|
|
@ -800,6 +800,7 @@ where
|
|||
let re = regex!("\t?\u{001f}([+-])");
|
||||
|
||||
let raw_diff = format!("{:#?}", DebugDiffWithAdapter { new, old, ctxt });
|
||||
let raw_diff = dot::escape_html(&raw_diff);
|
||||
|
||||
// Replace newlines in the `Debug` output with `<br/>`
|
||||
let raw_diff = raw_diff.replace('\n', r#"<br align="left"/>"#);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue