about summary refs log tree commit diff
path: root/src/librustdoc/html/escape
AgeCommit message (Collapse)AuthorLines
2024-10-07rustdoc: improve `<wbr>`-insertion for SCREAMING_CAMEL_CASEMichael Howell-0/+4
2024-07-29rustdoc: move the wbr after the underscore, instead of beforeMichael Howell-4/+4
2024-07-29rustdoc: properly handle path wrappingMichael Howell-1/+8
2024-07-29rustdoc: avoid redundant HTML when there's already line breaksMichael Howell-0/+4
2024-07-29rustdoc: word wrap CamelCase in the item list tableMichael Howell-0/+57
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.