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

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).

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