diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-06-17 05:55:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-17 05:55:01 +0900 |
| commit | 129723553b25e011e7721ffd65dd23df6b7838de (patch) | |
| tree | 991571fc04844bff40721228c9c7c9d6748bb73f /src/librustdoc/html/render | |
| parent | 05ba958fe8918725c4caed4e9b6a7af5f38e72ac (diff) | |
| parent | a2a006d1cc7d529aaccba48ec7986f76dfc14e60 (diff) | |
| download | rust-129723553b25e011e7721ffd65dd23df6b7838de.tar.gz rust-129723553b25e011e7721ffd65dd23df6b7838de.zip | |
Rollup merge of #86361 - GuillaumeGomez:missing-backslashes, r=jsha
Add missing backslashes to prevent unwanted newlines in rustdoc HTML Just adding some forgotten backslashes. r? `@jsha`
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/print_item.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index 04464b622d7..88ec172a18b 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -864,7 +864,7 @@ fn item_union(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::Uni if fields.peek().is_some() { write!( w, - "<h2 id=\"fields\" class=\"fields small-section-header\"> + "<h2 id=\"fields\" class=\"fields small-section-header\">\ Fields<a href=\"#fields\" class=\"anchor\"></a></h2>" ); for (field, ty) in fields { @@ -953,8 +953,8 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum if !e.variants.is_empty() { write!( w, - "<h2 id=\"variants\" class=\"variants small-section-header\"> - Variants{}<a href=\"#variants\" class=\"anchor\"></a></h2>\n", + "<h2 id=\"variants\" class=\"variants small-section-header\">\ + Variants{}<a href=\"#variants\" class=\"anchor\"></a></h2>", document_non_exhaustive_header(it) ); document_non_exhaustive(w, it); @@ -1139,7 +1139,7 @@ fn item_struct(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::St if fields.peek().is_some() { write!( w, - "<h2 id=\"fields\" class=\"fields small-section-header\"> + "<h2 id=\"fields\" class=\"fields small-section-header\">\ Fields{}<a href=\"#fields\" class=\"anchor\"></a></h2>", document_non_exhaustive_header(it) ); |
