core: Convert Char::escape_default, escape_unicode to iterators
[breaking-change]
This commit is contained in:
parent
ca1820b1fc
commit
aad2461604
7 changed files with 110 additions and 43 deletions
|
@ -431,7 +431,7 @@ impl<'a> LabelText<'a> {
|
|||
// not escaping \\, since Graphviz escString needs to
|
||||
// interpret backslashes; see EscStr above.
|
||||
'\\' => f(c),
|
||||
_ => c.escape_default(f)
|
||||
_ => for c in c.escape_default() { f(c) }
|
||||
}
|
||||
}
|
||||
fn escape_str(s: &str) -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue