-
Notifications
You must be signed in to change notification settings - Fork 492
Open
Labels
Description
When creating a document, things get a little annoying once you start working with tables. I think one of the main annoyances is that once you have a table in the document, you cannot continue adding content after you've inserted the table. Instead you have to do something like:
p1 := doc.AddParagraph()
pAfterTable := doc.InsertParagraphAfter(p1)
table := doc.InsertTableAfter(p1)
// now I can use pAfterTable to continue adding contentIf you have a table reference and you want to add another table directly after it, you'd have to take the additional step of deleting pAfterTable, which would have only been created so that you have a pointer to content after the first table.
There are currently funcs for:
InsertTableAfter (paragraph)InsertParagraphAfter (paragraph)- The
Beforeversion of these two
It would be nice to have
InsertParagraphAfter (table)InsertTableAfter (table), though I think two tables in a row without a paragraph in between is not very common.
I started writing my own function for InsertParagraphAfter (table), but it was sufficiently complex that it was easier to just work around it.
compleatang and CR903