Auto merge of #24116 - zaeleus:rustdoc-codespan, r=alexcrichton
Auto merge of #24116 - zaeleus:rustdoc-codespan, r=alexcrichton

Because 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],

```
/// ...
/// type can be borrowed as multiple different types. In particular, `Vec<T>:
/// Borrow<Vec<T>>` and `Vec<T>: Borrow<[T]>`.
```

renders as

![screen shot 2015-04-06 at 12 11 21](https://cloud.githubusercontent.com/assets/191331/7008216/2706b3b0-dc56-11e4-941e-1b0154fcbc5c.png)

because "`Vec<T>: Borrow<Vec<T>>`" wraps to the next line in the source.

CommonMark 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
CommonMark spec.

The 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.

[1]: http://spec.commonmark.org/0.18/
[2]: https://doc.rust-lang.org/std/borrow/trait.Borrow.html

jashank/rust,aepsil0n/rust,ruud-v-a/rust,dwillmer/rust,nwin/rust,aidancully/rust,omasanori/rust,andars/rust,omasanori/rust,jashank/rust,gifnksm/rust,jroesch/rust,KokaKiwi/rust,seanrivera/rust,nwin/rust,krzysz00/rust,rohitjoshi/rust,graydon/rust,ejjeong/rust,mvdnes/rust,carols10cents/rust,omasanori/rust,robertg/rust,TheNeikos/rust,vhbit/rust,philyoon/rust,aneeshusa/rust,krzysz00/rust,mihneadb/rust,KokaKiwi/rust,mvdnes/rust,XMPPwocky/rust,vhbit/rust,gifnksm/rust,vhbit/rust,l0kod/rust,cllns/rust,gifnksm/rust,kwantam/rust,aepsil0n/rust,robertg/rust,philyoon/rust,philyoon/rust,cllns/rust,avdi/rust,GBGamer/rust,mihneadb/rust,aepsil0n/rust,victorvde/rust,krzysz00/rust,ruud-v-a/rust,omasanori/rust,XMPPwocky/rust,GBGamer/rust,andars/rust,zachwick/rust,jroesch/rust,ejjeong/rust,gifnksm/rust,nwin/rust,carols10cents/rust,aneeshusa/rust,l0kod/rust,dwillmer/rust,andars/rust,zachwick/rust,pelmers/rust,vhbit/rust,XMPPwocky/rust,dwillmer/rust,jroesch/rust,rohitjoshi/rust,mvdnes/rust,robertg/rust,ejjeong/rust,victorvde/rust,mdinger/rust,l0kod/rust,pshc/rust,nwin/rust,rohitjoshi/rust,sae-bom/rust,seanrivera/rust,mdinger/rust,GBGamer/rust,ejjeong/rust,ruud-v-a/rust,aepsil0n/rust,KokaKiwi/rust,jashank/rust,pelmers/rust,reem/rust,vhbit/rust,seanrivera/rust,kwantam/rust,aneeshusa/rust,avdi/rust,zachwick/rust,andars/rust,pshc/rust,mihneadb/rust,reem/rust,aepsil0n/rust,miniupnp/rust,ejjeong/rust,l0kod/rust,vhbit/rust,sae-bom/rust,graydon/rust,zachwick/rust,jashank/rust,krzysz00/rust,zubron/rust,robertg/rust,TheNeikos/rust,aneeshusa/rust,carols10cents/rust,seanrivera/rust,l0kod/rust,gifnksm/rust,KokaKiwi/rust,nwin/rust,mihneadb/rust,dwillmer/rust,victorvde/rust,rohitjoshi/rust,zachwick/rust,ruud-v-a/rust,pshc/rust,miniupnp/rust,aidancully/rust,l0kod/rust,gifnksm/rust,avdi/rust,zubron/rust,pelmers/rust,krzysz00/rust,KokaKiwi/rust,mdinger/rust,aneeshusa/rust,mvdnes/rust,l0kod/rust,graydon/rust,aneeshusa/rust,mdinger/rust,zubron/rust,miniupnp/rust,GBGamer/rust,zubron/rust,TheNeikos/rust,kwantam/rust,mdinger/rust,cllns/rust,jashank/rust,sae-bom/rust,miniupnp/rust,reem/rust,dwillmer/rust,GBGamer/rust,robertg/rust,reem/rust,graydon/rust,seanrivera/rust,cllns/rust,zubron/rust,omasanori/rust,pshc/rust,kwantam/rust,rohitjoshi/rust,seanrivera/rust,nwin/rust,dwillmer/rust,avdi/rust,zubron/rust,GBGamer/rust,philyoon/rust,miniupnp/rust,sae-bom/rust,victorvde/rust,TheNeikos/rust,mihneadb/rust,mdinger/rust,avdi/rust,jroesch/rust,reem/rust,jashank/rust,pshc/rust,TheNeikos/rust,aidancully/rust,philyoon/rust,XMPPwocky/rust,carols10cents/rust,victorvde/rust,carols10cents/rust,miniupnp/rust,mvdnes/rust,KokaKiwi/rust,vhbit/rust,ruud-v-a/rust,mvdnes/rust,jroesch/rust,jashank/rust,miniupnp/rust,omasanori/rust,pelmers/rust,pelmers/rust,sae-bom/rust,aidancully/rust,pshc/rust,GBGamer/rust,aepsil0n/rust,kwantam/rust,pelmers/rust,l0kod/rust,aidancully/rust,andars/rust,miniupnp/rust,carols10cents/rust,graydon/rust,zubron/rust,pshc/rust,rohitjoshi/rust,GBGamer/rust,dwillmer/rust,ejjeong/rust,victorvde/rust,pshc/rust,jroesch/rust,graydon/rust,TheNeikos/rust,jroesch/rust,cllns/rust,XMPPwocky/rust,ruud-v-a/rust,vhbit/rust,jashank/rust,mihneadb/rust,dwillmer/rust,avdi/rust,reem/rust,XMPPwocky/rust,zubron/rust,robertg/rust,philyoon/rust,zachwick/rust,cllns/rust,krzysz00/rust,jroesch/rust,nwin/rust,aidancully/rust,nwin/rust,andars/rust,sae-bom/rust,kwantam/rust