about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-03-25 16:41:27 -0700
committerBrian Anderson <banderson@mozilla.com>2013-03-26 09:31:44 -0700
commit4d745c288a01fbc59366b65a65e847efb50353b5 (patch)
treee19e70a4222946b2f87d03f6a168071bd30d1bda /src
parent34392ad5b43c0e902dae0ed9405b45848cdf8872 (diff)
downloadrust-4d745c288a01fbc59366b65a65e847efb50353b5.tar.gz
rust-4d745c288a01fbc59366b65a65e847efb50353b5.zip
rustdoc: Tweak list style
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/markdown_pass.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustdoc/markdown_pass.rs b/src/librustdoc/markdown_pass.rs
index 05f1c7242de..fbcf82ade2f 100644
--- a/src/librustdoc/markdown_pass.rs
+++ b/src/librustdoc/markdown_pass.rs
@@ -436,6 +436,9 @@ fn write_index(ctxt: &Ctxt, index: doc::Index) {
         return;
     }
 
+    ctxt.w.put_line(~"<div class='index'>");
+    ctxt.w.put_line(~"");
+
     for index.entries.each |entry| {
         let header = header_text_(entry.kind, entry.name);
         let id = copy entry.link;
@@ -447,6 +450,8 @@ fn write_index(ctxt: &Ctxt, index: doc::Index) {
         }
     }
     ctxt.w.put_line(~"");
+    ctxt.w.put_line(~"</div>");
+    ctxt.w.put_line(~"");
 }
 
 #[test]