Rollup merge of #87270 - GuillaumeGomez:item-summary-table, r=notriddle
Don't display <table> in item summary Fixes #87231. r? `@notriddle`
This commit is contained in:
commit
aa3d64ef90
3 changed files with 24 additions and 4 deletions
6
src/test/rustdoc-gui/item-summary-table.goml
Normal file
6
src/test/rustdoc-gui/item-summary-table.goml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// This test ensures that <table> elements aren't display in items summary.
|
||||
goto: file://|DOC_PATH|/lib2/summary_table/index.html
|
||||
// We check that we picked the right item first.
|
||||
assert-text: (".item-table .item-left", "Foo")
|
||||
// Then we check that its summary is empty.
|
||||
assert-text: (".item-table .item-right", "")
|
||||
|
|
@ -66,3 +66,10 @@ pub mod long_table {
|
|||
/// I wanna sqdkfnqds f dsqf qds f dsqf dsq f dsq f qds f qds f qds f dsqq f dsf sqdf dsq fds f dsq f dq f ds fq sd fqds f dsq f sqd fsq df sd fdsqfqsd fdsq f dsq f dsqfd s dfq
|
||||
pub struct Foo;
|
||||
}
|
||||
|
||||
pub mod summary_table {
|
||||
/// | header 1 | header 2 |
|
||||
/// | -------- | -------- |
|
||||
/// | content | content |
|
||||
pub struct Foo;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue