diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-11 15:36:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-11 15:36:52 +0200 |
| commit | 103c71686aaa1f1edb92905a8f6dff701dddd70a (patch) | |
| tree | 5016dca9b2c9ce1fa8deaead990021ae111803c6 /compiler/rustc_parse/src/errors.rs | |
| parent | fc81a7c1d58468e0380e6d396ffebed694e7bd56 (diff) | |
| parent | 076927b7cfdcac9d740c85ebdc84025292d9caf5 (diff) | |
| download | rust-103c71686aaa1f1edb92905a8f6dff701dddd70a.tar.gz rust-103c71686aaa1f1edb92905a8f6dff701dddd70a.zip | |
Rollup merge of #131394 - ismailarilik:fix/rustdoc/add-space-between-struct-fields-and-their-descriptions, r=GuillaumeGomez
fix(rustdoc): add space between struct fields and their descriptions
Stolen from #128541.
Fixes #128260.
<table>
<thead>
<tr>
<th scope="col">Before</th>
<th scope="col">After</th>
</tr>
</thead>
<tbody>
<tr>
<td scope="row">
<img
src="https://github.com/user-attachments/assets/b1d3cb47-77c9-4897-a5d2-2192b11cb8a3"
/>
</td>
<td>
<img
src="https://github.com/user-attachments/assets/0b104672-d2be-49f4-ac9b-3506526fe2f1"
/>
</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th scope="col">Before</th>
<th scope="col">After</th>
</tr>
</thead>
<tbody>
<tr>
<td scope="row">
<img
src="https://github.com/user-attachments/assets/650c3e74-a067-492a-9ba3-557f9214f875"
/>
</td>
<td>
<img
src="https://github.com/user-attachments/assets/413ef9b0-8fca-4e16-978a-7b88d05299dc"
/>
</td>
</tr>
</tbody>
</table>
Unlike original PR, I didn't add space between field headers; I put it between headers and descriptions. So if there are only headers, the space is not changed. Otherwise, I put a space like the space between paragraphs (.75em) which makes sense for me but feel free to adjust it or ask me to do so.
r? `@GuillaumeGomez`
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
