From 252f7d77ac68a8b3c51f076f65a14d314de8c787 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan <mmcgrana@gmail.com> Date: Sat, 13 Oct 2012 12:15:46 -0700 Subject: [PATCH] further simplify tables --- templates/example.tmpl | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/templates/example.tmpl b/templates/example.tmpl index 2183000..f13c1d7 100644 --- a/templates/example.tmpl +++ b/templates/example.tmpl @@ -22,18 +22,16 @@ <h2><a href="./">Go by Example</a>: {{.Name}}</h2> {{range .Segs}} <table> - <tbody> - {{range .}} - <tr> - <td class="docs"> - {{.DocsRendered}} - </td> - <td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}"> - {{.CodeRendered}} - </td> - </tr> - {{end}} - </tbody> + {{range .}} + <tr> + <td class="docs"> + {{.DocsRendered}} + </td> + <td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}"> + {{.CodeRendered}} + </td> + </tr> + {{end}} </table> {{end}} {{if .NextExample}}