diff --git a/pdf/creator/subchapter.go b/pdf/creator/subchapter.go index 9ad8f21e..37cdb67c 100644 --- a/pdf/creator/subchapter.go +++ b/pdf/creator/subchapter.go @@ -120,7 +120,7 @@ func (subchap *subchapter) Add(d Drawable) { switch d.(type) { case *Chapter, *subchapter: common.Log.Debug("Error: Cannot add chapter or subchapter to a subchapter") - case *paragraph, *image, *Block: + case *paragraph, *image, *Block, *Table: subchap.contents = append(subchap.contents, d) default: common.Log.Debug("Unsupported: %T", d)