Skip to content

Commit

Permalink
Align text to the left when separated by br
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Sep 2, 2023
1 parent 8c7e192 commit 80cb37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphviz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const INITIAL_COLOR: usize = 2;
/// Returns an html label for the node with the function name and ports for each argumetn
fn html_label(label: &str, n_args: usize) -> String {
format!(
"<<TABLE BGCOLOR=\"white\" CELLBORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" style=\"rounded\"><tr><td CELLPADDING=\"4\" WIDTH=\"30\" HEIGHT=\"30\"{}>{}</td></tr>{}</TABLE>>",
"<<TABLE BGCOLOR=\"white\" CELLBORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" style=\"rounded\"><tr><td BALIGN="left" CELLPADDING=\"4\" WIDTH=\"30\" HEIGHT=\"30\"{}>{}</td></tr>{}</TABLE>>",
(if n_args == 0 {"".to_string()} else {format!(" colspan=\"{}\"", n_args)}),
Escape(label),
(if n_args == 0 {
Expand Down

0 comments on commit 80cb37a

Please sign in to comment.