Force backline on all where in docs
This commit is contained in:
@@ -165,7 +165,7 @@ impl<'a> fmt::Display for WhereClause<'a> {
|
|||||||
if f.alternate() {
|
if f.alternate() {
|
||||||
clause.push_str(" where ");
|
clause.push_str(" where ");
|
||||||
} else {
|
} else {
|
||||||
clause.push_str(" <span class='where'>where ");
|
clause.push_str(" <span class='where fmt-newline'>where ");
|
||||||
}
|
}
|
||||||
for (i, pred) in gens.where_predicates.iter().enumerate() {
|
for (i, pred) in gens.where_predicates.iter().enumerate() {
|
||||||
if i > 0 {
|
if i > 0 {
|
||||||
@@ -211,7 +211,6 @@ impl<'a> fmt::Display for WhereClause<'a> {
|
|||||||
// break it onto its own line regardless, but make sure method impls and trait
|
// break it onto its own line regardless, but make sure method impls and trait
|
||||||
// blocks keep their fixed padding (2 and 9, respectively)
|
// blocks keep their fixed padding (2 and 9, respectively)
|
||||||
let padding = if pad > 10 {
|
let padding = if pad > 10 {
|
||||||
clause = clause.replace("class='where'", "class='where fmt-newline'");
|
|
||||||
repeat(" ").take(8).collect::<String>()
|
repeat(" ").take(8).collect::<String>()
|
||||||
} else {
|
} else {
|
||||||
repeat(" ").take(pad + 6).collect::<String>()
|
repeat(" ").take(pad + 6).collect::<String>()
|
||||||
|
|||||||
Reference in New Issue
Block a user