Unable to add new line after matching a document.paragraphs - python docx library

26 Views Asked by At

Need a help with below issue,

I have an issue adding a new line and by appending table data using python docx library by matching a string. Document: Document image Code: Code

Expected result: I would like to append a table in between two paragraphs

Expected result

My result: Table added along with a string available next to matched string, means that string is also added in my table first cell along with first cell data(row 0, column 0).

My result

Please take a look at images, i would like to add new lines before and after matching a string and appending table

0

There are 0 best solutions below