Test and document escaping on format!()
auto merge of #8942 : novalis/rust/fmt, r=alexcrichton