@@ -311,7 +311,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
311
311
w,
312
312
"<h2 id=\" {id}\" class=\" small-section-header\" >\
313
313
<a href=\" #{id}\" >{name}</a>\
314
- </h2>\n {}",
314
+ </h2>{}",
315
315
ITEM_TABLE_OPEN ,
316
316
id = cx. derive_id( my_section. id( ) . to_owned( ) ) ,
317
317
name = my_section. name( ) ,
@@ -415,10 +415,10 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
415
415
write ! (
416
416
w,
417
417
"<div class=\" item-left {stab}{add}module-item\" >\
418
- <a class=\" {class}\" href=\" {href}\" title=\" {title}\" >{name}</a>\
419
- {visibility_emoji}\
420
- {unsafety_flag}\
421
- {stab_tags}\
418
+ <a class=\" {class}\" href=\" {href}\" title=\" {title}\" >{name}</a>\
419
+ {visibility_emoji}\
420
+ {unsafety_flag}\
421
+ {stab_tags}\
422
422
</div>\
423
423
<div class=\" item-right docblock-short\" >{docs}</div>",
424
424
name = myitem. name. unwrap( ) ,
@@ -1126,7 +1126,8 @@ fn item_union(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, s: &clean:
1126
1126
write ! (
1127
1127
w,
1128
1128
"<h2 id=\" fields\" class=\" fields small-section-header\" >\
1129
- Fields<a href=\" #fields\" class=\" anchor\" ></a></h2>"
1129
+ Fields<a href=\" #fields\" class=\" anchor\" ></a>\
1130
+ </h2>"
1130
1131
) ;
1131
1132
for ( field, ty) in fields {
1132
1133
let name = field. name . expect ( "union field name" ) ;
@@ -1238,7 +1239,8 @@ fn item_enum(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, e: &clean::
1238
1239
write ! (
1239
1240
w,
1240
1241
"<h2 id=\" variants\" class=\" variants small-section-header\" >\
1241
- Variants{}<a href=\" #variants\" class=\" anchor\" ></a></h2>",
1242
+ Variants{}<a href=\" #variants\" class=\" anchor\" ></a>\
1243
+ </h2>",
1242
1244
document_non_exhaustive_header( it)
1243
1245
) ;
1244
1246
document_non_exhaustive ( w, it) ;
@@ -1294,9 +1296,9 @@ fn item_enum(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, e: &clean::
1294
1296
w,
1295
1297
"<div class=\" sub-variant-field\" >\
1296
1298
<span id=\" {id}\" class=\" variant small-section-header\" >\
1297
- <a href=\" #{id}\" class=\" anchor field\" ></a>\
1298
- <code>{f}: {t}</code>\
1299
- </span>",
1299
+ <a href=\" #{id}\" class=\" anchor field\" ></a>\
1300
+ <code>{f}: {t}</code>\
1301
+ </span>",
1300
1302
id = id,
1301
1303
f = field. name. unwrap( ) ,
1302
1304
t = ty. print( cx)
0 commit comments