clean up table rendering

This commit is contained in:
Mark McGranaghan 2012-10-13 11:58:20 -07:00
parent fffe490d49
commit 2bf43d91cf

View File

@ -21,17 +21,17 @@
<div class="example" id="{{.Id}}"> <div class="example" id="{{.Id}}">
<h2><a href="./">Go by Example</a>: {{.Name}}</h2> <h2><a href="./">Go by Example</a>: {{.Name}}</h2>
{{range .Segs}} {{range .Segs}}
<table cellspacing="0" cellpadding="0"> <table>
<tbody> <tbody>
{{range .}} {{range .}}
<tr> <tr>
<td class="docs"> <td class="docs">
{{.DocsRendered}} {{.DocsRendered}}
</td> </td>
<td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}"> <td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}">
{{.CodeRendered}} {{.CodeRendered}}
</td> </td>
</tr> </tr>
{{end}} {{end}}
</tbody> </tbody>
</table> </table>