]> git.lizzy.rs Git - rust.git/commit
Auto merge of #23351 - nagisa:rustdoc-lines-2, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 15 Mar 2015 03:11:14 +0000 (03:11 +0000)
committerbors <bors@rust-lang.org>
Sun, 15 Mar 2015 03:11:14 +0000 (03:11 +0000)
commit66853af9af79fdc4fb8e659c8b1f890918749d5f
tree97c37a8547d990a9c8e5c8e43e41ee4179288d26
parent8c85a9d20f6d764f80e55132f821dcd996921327
parentb09e5daa89b6dbfe93b9db7a66b670ca6d1b5f4a
Auto merge of #23351 - nagisa:rustdoc-lines-2, r=alexcrichton

Previously it would fail on a trivial case like

    /// Summary line
    /// <trailing space>
    /// Regular content

Compliant markdown preprocessor would render that as two separate paragraphs, but our summary line
extractor interprets both lines as the same paragraph and includes both into the short summary resulting in
![screenshot from 2015-03-13 22 47 08](https://cloud.githubusercontent.com/assets/679122/6648596/7ef792b2-c9e4-11e4-9c19-704c288ec4de.png)
src/librustdoc/html/render.rs