include CT_SdtRow entries in table.Rows() (#261)

This commit is contained in:
Jeff Stiles 2019-04-10 16:07:05 -07:00 committed by Gunnsteinn Hall
parent bd218fda99
commit 001376ca65

View File

@ -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
}