{"push_id":624872347,"size":3,"distinct_size":0,"ref":"refs/heads/master","head":"de51bbec15bd689b9c56e8596d1a1e973b707bbd","before":"c52d46e778f48f12452b65455614a249e4365066","commits":[{"sha":"b6c2e82b71ebc6d596f6c7651b22dffa37c4e41b","author":{"email":"b1ae5be4d9f44b631e86167bddec516e381d939b@gmail.com","name":"Michael Macias"},"message":"rustdoc: Add a custom callback for codespan to collapse whitespace\n\nBecause the current style for `code` in rustdoc is to prewrap\nwhitespace, code spans that are hard wrapped in the source\ndocumentation are prematurely wrapped when rendered in HTML.\n\nCommonMark 0.18 [[1]] specifies \"interior spaces and line endings are\ncollapsed into single spaces\" for code spans, which would actually\nprevent this issue, but hoedown does not currently conform to the\nCommonMark spec.\n\nThe added span-level callback attempts to adhere to how whitespace is\nhandled as described by CommonMark, fixing the issue of early,\nunintentional wrapping of code spans in rendered HTML.\n\n[1]: http://spec.commonmark.org/0.18/","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/b6c2e82b71ebc6d596f6c7651b22dffa37c4e41b"},{"sha":"46cc6e5fc31377c001a5a12c5079388253eecfbc","author":{"email":"b1ae5be4d9f44b631e86167bddec516e381d939b@gmail.com","name":"Michael Macias"},"message":"rustdoc: Use iterators to collapse whitespace\n\nThanks, @alexcrichton!","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/46cc6e5fc31377c001a5a12c5079388253eecfbc"},{"sha":"de51bbec15bd689b9c56e8596d1a1e973b707bbd","author":{"email":"3a2c29237f73c7cf88424b80e427b1884f346b35@rust-lang.org","name":"bors"},"message":"Auto merge of #24116 - zaeleus:rustdoc-codespan, r=alexcrichton\n\nBecause the current style for `code` in rustdoc is to prewrap whitespace, code spans that are hard wrapped in the source documentation are prematurely wrapped when rendered in HTML. [For example][2],\r\n\r\n```\r\n/// ...\r\n/// type can be borrowed as multiple different types. In particular, `Vec<T>:\r\n/// Borrow<Vec<T>>` and `Vec<T>: Borrow<[T]>`.\r\n```\r\n\r\nrenders as\r\n\r\n![screen shot 2015-04-06 at 12 11 21](https://cloud.githubusercontent.com/assets/191331/7008216/2706b3b0-dc56-11e4-941e-1b0154fcbc5c.png)\r\n\r\nbecause \"`Vec<T>: Borrow<Vec<T>>`\" wraps to the next line in the source.\r\n\r\nCommonMark 0.18 [[1]] specifies \"interior spaces and line endings are collapsed into single spaces\" for code spans, which would actually prevent this issue, but hoedown does not currently conform to the\r\nCommonMark spec.\r\n\r\nThe added span-level callback attempts to adhere to how whitespace is handled as described by CommonMark, fixing the issue of early, unintentional wrapping of code spans in rendered HTML.\r\n\r\n[1]: http://spec.commonmark.org/0.18/\r\n[2]: https://doc.rust-lang.org/std/borrow/trait.Borrow.html","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/de51bbec15bd689b9c56e8596d1a1e973b707bbd"}]}