]> git.lizzy.rs Git - rust.git/commit
rustdoc: only filter lines starting with '# ' from the shown code.
authorHuon Wilson <dbau.pp+github@gmail.com>
Sat, 28 Dec 2013 23:54:56 +0000 (10:54 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Mon, 30 Dec 2013 05:55:49 +0000 (16:55 +1100)
commit582ad8ffc28429714b84d2dd8f01c780afb00b15
tree1d5003b30950178e1f2ee31e7972b5cd0e4d4114
parent9477c49a7b4eec2c2a3e0d9a28c4129e3d1fa6ec
rustdoc: only filter lines starting with '# ' from the shown code.

Currently any line starting with `#` is filtered from the output,
including line like `#[deriving]`; this patch makes it so lines are only
filtered when followed by a space similar to the current behaviour of
the tutorial/manual tester.
doc/rustdoc.md
src/librustdoc/html/markdown.rs
src/librustdoc/test.rs
src/test/run-make/rustdoc-hidden-line/Makefile [new file with mode: 0644]
src/test/run-make/rustdoc-hidden-line/foo.rs [new file with mode: 0644]
src/test/run-make/rustdoc-hidden-line/verify.sh [new file with mode: 0755]