Allow adding table to subchapter

This commit is contained in:
Gunnsteinn Hall 2017-07-14 16:41:21 +00:00
parent 68fa179d7c
commit a5e2a5f371

View File

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