Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document: Feature Request: InsertParagraphAfterTable #386

Open
freb opened this issue Apr 27, 2020 · 1 comment
Open

document: Feature Request: InsertParagraphAfterTable #386

freb opened this issue Apr 27, 2020 · 1 comment
Labels

Comments

@freb
Copy link
Contributor

freb commented Apr 27, 2020

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 content

If 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 Before version 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.

@gunnsth gunnsth added document feature New feature labels Jun 1, 2020
@CR903
Copy link

CR903 commented Aug 13, 2020

InsertTableAfter(paragraph) has no effect in table Cell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants