Skip to content

Commit c52ab55

Browse files
Sarah IrbisSarah Irbis
authored andcommitted
cargo fmt
1 parent c3c6707 commit c52ab55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cm.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,13 +549,13 @@ impl<'a, 'o> CommonMarkFormatter<'a, 'o> {
549549
write!(self, "`").unwrap();
550550
}
551551

552-
let all_space = literal.iter().all(|&c| c==b' ' || c==b'\r' || c==b'\n');
552+
let all_space = literal
553+
.iter()
554+
.all(|&c| c == b' ' || c == b'\r' || c == b'\n');
553555
let has_edge_space = literal[0] == b' ' || literal[literal.len() - 1] == b' ';
554-
let has_edge_backtick = literal[0] == b'`' || literal[literal.len() - 1] == b'`';
556+
let has_edge_backtick = literal[0] == b'`' || literal[literal.len() - 1] == b'`';
555557

556-
let pad = literal.is_empty()
557-
|| has_edge_backtick
558-
|| (!all_space && has_edge_space);
558+
let pad = literal.is_empty() || has_edge_backtick || (!all_space && has_edge_space);
559559
if pad {
560560
write!(self, " ").unwrap();
561561
}

0 commit comments

Comments
 (0)