Skip to content

Commit 670e25e

Browse files
committed
Add initial version of value analysis and dataflow constant propagation
1 parent 085ce46 commit 670e25e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,11 @@ pub trait Labeller<'a> {
471471
/// Escape tags in such a way that it is suitable for inclusion in a
472472
/// Graphviz HTML label.
473473
pub fn escape_html(s: &str) -> String {
474-
s.replace('&', "&amp;").replace('\"', "&quot;").replace('<', "&lt;").replace('>', "&gt;")
474+
s.replace('&', "&amp;")
475+
.replace('\"', "&quot;")
476+
.replace('<', "&lt;")
477+
.replace('>', "&gt;")
478+
.replace('\n', "<br align=\"left\"/>")
475479
}
476480

477481
impl<'a> LabelText<'a> {

0 commit comments

Comments
 (0)