From 001376ca650adb828c136b45a828b32a671b20f9 Mon Sep 17 00:00:00 2001 From: Jeff Stiles Date: Wed, 10 Apr 2019 16:07:05 -0700 Subject: [PATCH] include CT_SdtRow entries in table.Rows() (#261) --- document/table.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/document/table.go b/document/table.go index 296d917c..c5ed91d3 100644 --- a/document/table.go +++ b/document/table.go @@ -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 }