Skip to content

Commit

Permalink
Backward-compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarl committed Jan 16, 2017
1 parent bc12ae4 commit fb755e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion report/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,17 @@ func (t TableTemplates) Tables(node Node) []Table {
var result []Table
for _, template := range t {
rows, truncationCount := node.ExtractTable(template)
// Extract the type from the template; default to
// property list for backwards-compatibility.
tableType := template.Type
if tableType == "" {
tableType = PropertyListType
}
result = append(result, Table{
ID: template.ID,
Label: template.Label,
Type: template.Type,
Columns: template.Columns,
Type: tableType,
Rows: rows,
TruncationCount: truncationCount,
})
Expand Down

0 comments on commit fb755e7

Please sign in to comment.