Rollup merge of #87444 - camelid:flatten-nested-format, r=jyn514
Flatten nested `format!` calls
This commit is contained in:
commit
b745a2881d
1 changed files with 2 additions and 2 deletions
|
@ -234,9 +234,9 @@ impl<'a, I: Iterator<Item = Event<'a>>> Iterator for CodeBlocks<'_, 'a, I> {
|
|||
return Some(Event::Html(
|
||||
format!(
|
||||
"<div class=\"example-wrap\">\
|
||||
<pre{}>{}</pre>\
|
||||
<pre class=\"language-{}\">{}</pre>\
|
||||
</div>",
|
||||
format!(" class=\"language-{}\"", lang),
|
||||
lang,
|
||||
Escape(&text),
|
||||
)
|
||||
.into(),
|
||||
|
|
Loading…
Add table
Reference in a new issue