mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-02 22:17:06 +08:00
Allow adding table to subchapter
This commit is contained in:
parent
68fa179d7c
commit
a5e2a5f371
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user