Format the world
This commit is contained in:
parent
8eb7c58dbb
commit
a06baa56b9
1160 changed files with 65934 additions and 74316 deletions
|
@ -19,14 +19,14 @@ impl<'a> fmt::Display for Escape<'a> {
|
|||
for (i, ch) in s.bytes().enumerate() {
|
||||
match ch as char {
|
||||
'<' | '>' | '&' | '\'' | '"' => {
|
||||
fmt.write_str(&pile_o_bits[last.. i])?;
|
||||
fmt.write_str(&pile_o_bits[last..i])?;
|
||||
let s = match ch as char {
|
||||
'>' => ">",
|
||||
'<' => "<",
|
||||
'&' => "&",
|
||||
'\'' => "'",
|
||||
'"' => """,
|
||||
_ => unreachable!()
|
||||
_ => unreachable!(),
|
||||
};
|
||||
fmt.write_str(s)?;
|
||||
last = i + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue