We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Paragraphs
1 parent c01764e commit 06b1c96Copy full SHA for 06b1c96
document/document.go
@@ -430,7 +430,7 @@ func (d *Document) StructuredDocumentTags() []StructuredDocumentTag {
430
return ret
431
}
432
433
-// Paragraphs returns all of the paragraphs in the document body.
+// Paragraphs returns all of the paragraphs in the document body including tables.
434
func (d *Document) Paragraphs() []Paragraph {
435
ret := []Paragraph{}
436
if d.x.Body == nil {
@@ -443,6 +443,14 @@ func (d *Document) Paragraphs() []Paragraph {
443
444
445
446
+
447
+ for _, t := range d.Tables() {
448
+ for _, r := range t.Rows() {
449
+ for _, c := range r.Cells() {
450
+ ret = append(ret, c.Paragraphs()...)
451
+ }
452
453
454
455
456
0 commit comments