Commit ba1a361
committed
rustdoc: don't strip <p> from stability notes
I believe the reason we were doing this before was that
write_html_fmt adds a \n after each <p> element.
I have worked around this by making white-space:pre-wrap apply
only to the contents of each paragraph, so the inserted whitespace
between paragraphs is not included.
Perhaps a better solution would be getting rid of pre-wrap entirely,
and instead inserting <br> events in place of newlines, but that
would be a significantly larger change.1 parent 66428d9 commit ba1a361
File tree
4 files changed
+9
-6
lines changed- src/librustdoc/html
- markdown
- static/css
- tests/rustdoc
4 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1479 | 1479 | | |
1480 | 1480 | | |
1481 | 1481 | | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
1485 | 1482 | | |
1486 | 1483 | | |
1487 | 1484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1577 | 1577 | | |
1578 | 1578 | | |
1579 | 1579 | | |
1580 | | - | |
1581 | 1580 | | |
1582 | 1581 | | |
1583 | 1582 | | |
1584 | 1583 | | |
1585 | | - | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
1586 | 1587 | | |
1587 | 1588 | | |
1588 | 1589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments