Skip to content

Commit 5c6d448

Browse files
authored
Merge pull request #173 from adrg/fix-toc-chapter-tables
Fix TOC page numbering for chapters containing tables
2 parents 9e3d977 + 09582cb commit 5c6d448

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

creator/table.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ func (table *Table) GeneratePageBlocks(ctx DrawContext) ([]*Block, DrawContext,
451451
ulY = ctx.Margins.top
452452

453453
ctx.Height = ctx.PageHeight - ctx.Margins.top - ctx.Margins.bottom
454+
ctx.Page++
454455
origHeight = ctx.Height
455456

456457
startrow = cell.row - 1

0 commit comments

Comments
 (0)