@@ -263,14 +263,14 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
263
263
curty = myty;
264
264
} else if myty != curty {
265
265
if curty. is_some ( ) {
266
- w. write_str ( "</table>" ) ;
266
+ w. write_str ( "</item- table>" ) ;
267
267
}
268
268
curty = myty;
269
269
let ( short, name) = item_ty_to_strs ( myty. unwrap ( ) ) ;
270
270
write ! (
271
271
w,
272
272
"<h2 id=\" {id}\" class=\" section-header\" >\
273
- <a href=\" #{id}\" >{name}</a></h2>\n <table>",
273
+ <a href=\" #{id}\" >{name}</a></h2>\n <item- table>",
274
274
id = cx. derive_id( short. to_owned( ) ) ,
275
275
name = name
276
276
) ;
@@ -283,14 +283,14 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
283
283
match * src {
284
284
Some ( ref src) => write ! (
285
285
w,
286
- "<tr><td ><code>{}extern crate {} as {};" ,
286
+ "<item-left ><code>{}extern crate {} as {};" ,
287
287
myitem. visibility. print_with_space( myitem. def_id, cx) ,
288
288
anchor( myitem. def_id. expect_real( ) , & * src. as_str( ) , cx) ,
289
289
myitem. name. as_ref( ) . unwrap( ) ,
290
290
) ,
291
291
None => write ! (
292
292
w,
293
- "<tr><td ><code>{}extern crate {};" ,
293
+ "<item-left ><code>{}extern crate {};" ,
294
294
myitem. visibility. print_with_space( myitem. def_id, cx) ,
295
295
anchor(
296
296
myitem. def_id. expect_real( ) ,
@@ -299,7 +299,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
299
299
) ,
300
300
) ,
301
301
}
302
- w. write_str ( "</code></td></tr> " ) ;
302
+ w. write_str ( "</code></item-left> \n " ) ;
303
303
}
304
304
305
305
clean:: ImportItem ( ref import) => {
@@ -326,10 +326,10 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
326
326
327
327
write ! (
328
328
w,
329
- "<tr class=\" {stab}{add}import-item\" >\
330
- <td>< code>{vis}{imp}</code></td >\
331
- <td class= \" docblock-short \" >{stab_tags}</td >\
332
- </tr> ",
329
+ "<item-left class=\" {stab}{add}import-item\" >\
330
+ <code>{vis}{imp}</code>\
331
+ </item-left >\
332
+ <item-right class= \" docblock-short \" >{stab_tags}</item-right> \n ",
333
333
stab = stab. unwrap_or_default( ) ,
334
334
add = add,
335
335
vis = myitem. visibility. print_with_space( myitem. def_id, cx) ,
@@ -358,11 +358,10 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
358
358
let doc_value = myitem. doc_value ( ) . unwrap_or_default ( ) ;
359
359
write ! (
360
360
w,
361
- "<tr class=\" {stab}{add}module-item\" >\
362
- <td><a class=\" {class}\" href=\" {href}\" \
363
- title=\" {title}\" >{name}</a>{unsafety_flag}</td>\
364
- <td class=\" docblock-short\" >{stab_tags}{docs}</td>\
365
- </tr>",
361
+ "<item-left class=\" {stab}{add}module-item\" >\
362
+ <a class=\" {class}\" href=\" {href}\" \
363
+ title=\" {title}\" >{name}</a>{unsafety_flag}</item-left>\
364
+ <item-right class=\" docblock-short\" >{stab_tags}{docs}</item-right>\n ",
366
365
name = * myitem. name. as_ref( ) . unwrap( ) ,
367
366
stab_tags = extra_info_tags( myitem, item, cx. tcx( ) ) ,
368
367
docs = MarkdownSummaryLine ( & doc_value, & myitem. links( cx) ) . into_string( ) ,
@@ -382,7 +381,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
382
381
}
383
382
384
383
if curty. is_some ( ) {
385
- w. write_str ( "</table>" ) ;
384
+ w. write_str ( "</item- table>\n " ) ;
386
385
}
387
386
}
388
387
0 commit comments