Skip to content

Commit

Permalink
include CT_SdtRow entries in table.Rows() (unidoc#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
freb authored and gunnsth committed Apr 10, 2019
1 parent bd218fd commit 001376c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions document/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ func (t Table) Rows() []Row {
for _, ctRow := range rc.Tr {
ret = append(ret, Row{t.d, ctRow})
}
if rc.Sdt != nil && rc.Sdt.SdtContent != nil {
for _, ctRow := range rc.Sdt.SdtContent.Tr {
ret = append(ret, Row{t.d, ctRow})
}
}
}
return ret
}

0 comments on commit 001376c

Please sign in to comment.