Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 6d849d6

Browse files
Merge pull request #541 from googlecodelabs/table-lines
Output devsite tables with vertical lines.
2 parents 5169ec9 + 2a7d351 commit 6d849d6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

claat/render/html.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,11 @@ func (hw *htmlWriter) itemsList(n *types.ItemsListNode) {
307307
}
308308

309309
func (hw *htmlWriter) grid(n *types.GridNode) {
310-
hw.writeString("<table>\n")
310+
if hw.format == "devsite" {
311+
hw.writeString(`<table class="vertical-rules">\n`)
312+
} else {
313+
hw.writeString("<table>\n")
314+
}
311315
for _, r := range n.Rows {
312316
hw.writeString("<tr>")
313317
for _, c := range r {

0 commit comments

Comments
 (0)