]> git.lizzy.rs Git - rust.git/commit
rustdoc: properly nest markup within enum variant lists (fixes #6605)
authorBenjamin Herr <ben@0x539.de>
Thu, 23 May 2013 07:30:15 +0000 (09:30 +0200)
committerBenjamin Herr <ben@0x539.de>
Sun, 26 May 2013 10:06:32 +0000 (12:06 +0200)
commitd89a6ceb1b36e7460afece5b3392c8f24f7ef6ce
tree3928752743e5dbe960f476d6ddd4e18cc0434738
parent510d0f221c5a9ca7671149fe7e7bb802592edc06
rustdoc: properly nest markup within enum variant lists (fixes #6605)

This indents all but the first line of multi-line annotations for
individual enum variants with four spaces so that pandoc will
recognize everything as belonging to the same list item.

Since that introduces `<p>` tags for some list items, I've gone ahead
and inserted blank lines after each list item so that consistently
get `<p>` tags for all `<li>`s documenting variants. It's a bit less
compact now but still tolerable, I think.
src/librustdoc/markdown_pass.rs