about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-06-06 08:00:34 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-06-07 00:31:59 +0000
commit970e15d3c321b8295ff6675c3bc001845ed0c0b5 (patch)
tree84bf10af2764e5d6327b72439a4bf961c45e917d /src
parent49de80d7ea77bce8796d12d7fc600cb16281b1e0 (diff)
downloadrust-970e15d3c321b8295ff6675c3bc001845ed0c0b5.tar.gz
rust-970e15d3c321b8295ff6675c3bc001845ed0c0b5.zip
Fix bug in `librustdoc` in which an unmatched "</table>" is emitted.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/render.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index 396f71173f8..5dbef92cf1e 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -1818,7 +1818,10 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
         }
     }
 
-    write!(w, "</table>")
+    if curty.is_some() {
+        write!(w, "</table>")?;
+    }
+    Ok(())
 }
 
 fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<String> {