diff options
| author | Michael Howell <michael@notriddle.com> | 2024-06-10 15:01:31 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2024-07-29 08:45:50 -0700 |
| commit | f3661dce09bc715a46c01f7ea57694e06b587f29 (patch) | |
| tree | 49eeef8ef3b340842719a42e2d49e0613cdeb846 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 4db3d12e6f395babed53dee1d209a5c8699a5ae6 (diff) | |
| download | rust-f3661dce09bc715a46c01f7ea57694e06b587f29.tar.gz rust-f3661dce09bc715a46c01f7ea57694e06b587f29.zip | |
rustdoc: word wrap CamelCase in the item list table
This is an alternative to ee6459d6521cf6a4c2e08b6e13ce3c6ce5d55ed0. That is, it fixes the issue that affects the very long type names in https://docs.rs/async-stripe/0.31.0/stripe/index.html#structs. This is, necessarily, a pile of nasty heuristics. We need to balance a few issues: - Sometimes, there's no real word break. For example, `BTreeMap` should be `BTree<wbr>Map`, not `B<wbr>Tree<wbr>Map`. - Sometimes, there's a legit word break, but the name is tiny and the HTML overhead isn't worth it. For example, if we're typesetting `TyCtx`, writing `Ty<wbr>Ctx` would have an HTML overhead of 50%. Line breaking inside it makes no sense.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
