about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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]