1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-09 01:30:25 +08:00

More tests

This commit is contained in:
Gonzalo Fernandez-Victorio
2021-05-12 21:27:28 +01:00
parent 965e28ba05
commit 4c88ae23fe
4 changed files with 47 additions and 26 deletions

View File

@@ -34,7 +34,7 @@ func main() {
for _, para := range doc.Paragraphs() {
glog.Infoln("There is a new paragraph", para)
for _, child := range para.Children() {
if child.Run != nil {
if child.Run != nil && child.Run.Text != nil {
fmt.Printf("\tWe've found a new run with the text ->%s\n", child.Run.Text.Text)
}
if child.Link != nil {