@@ -516,7 +516,7 @@ impl<'a> LabelText<'a> {
516516 match * self {
517517 LabelStr ( ref s) => format ! ( "\" {}\" " , s. escape_default( ) ) ,
518518 EscStr ( ref s) => format ! ( "\" {}\" " , LabelText :: escape_str( s) ) ,
519- HtmlStr ( ref s) => format ! ( "<{}>" , s ) ,
519+ HtmlStr ( ref s) => format ! ( "<{s }>" ) ,
520520 }
521521 }
522522
@@ -622,7 +622,7 @@ where
622622 if let Some ( fontname) = options. iter ( ) . find_map ( |option| {
623623 if let RenderOption :: Fontname ( fontname) = option { Some ( fontname) } else { None }
624624 } ) {
625- font = format ! ( r#"fontname="{}""# , fontname ) ;
625+ font = format ! ( r#"fontname="{fontname }""# ) ;
626626 graph_attrs. push ( & font[ ..] ) ;
627627 content_attrs. push ( & font[ ..] ) ;
628628 }
@@ -635,8 +635,8 @@ where
635635 if !( graph_attrs. is_empty ( ) && content_attrs. is_empty ( ) ) {
636636 writeln ! ( w, r#" graph[{}];"# , graph_attrs. join( " " ) ) ?;
637637 let content_attrs_str = content_attrs. join ( " " ) ;
638- writeln ! ( w, r#" node[{}];"# , content_attrs_str ) ?;
639- writeln ! ( w, r#" edge[{}];"# , content_attrs_str ) ?;
638+ writeln ! ( w, r#" node[{content_attrs_str }];"# ) ?;
639+ writeln ! ( w, r#" edge[{content_attrs_str }];"# ) ?;
640640 }
641641
642642 let mut text = Vec :: new ( ) ;
@@ -649,7 +649,7 @@ where
649649 write ! ( text, "{}" , id. as_slice( ) ) . unwrap ( ) ;
650650
651651 if !options. contains ( & RenderOption :: NoNodeLabels ) {
652- write ! ( text, "[label={}]" , escaped ) . unwrap ( ) ;
652+ write ! ( text, "[label={escaped }]" ) . unwrap ( ) ;
653653 }
654654
655655 let style = g. node_style ( n) ;
@@ -678,7 +678,7 @@ where
678678 write ! ( text, "{} -> {}" , source_id. as_slice( ) , target_id. as_slice( ) ) . unwrap ( ) ;
679679
680680 if !options. contains ( & RenderOption :: NoEdgeLabels ) {
681- write ! ( text, "[label={}]" , escaped_label ) . unwrap ( ) ;
681+ write ! ( text, "[label={escaped_label }]" ) . unwrap ( ) ;
682682 }
683683
684684 let style = g. edge_style ( e) ;
0 commit comments