Removing first line in table cell with docx package

Published: 13/10/2019
Removing first line in table cell with docx package
Source: STACKOVERFLOW.COM

I'm new to docx and am trying to remove the first line when adding a new paragraph to a table cell. from docx import Document from docx.shared import Pt document.add_heading().add_run('HEADING').font.name = 'Calibri' a = document.add_table(1, 2, style= 'Table Grid') a_cells = a.rows[0].cells a1 = a_cells[0].add_paragraph() a1 = a1.add_run('NAME').font a1.bold = True a1.name = 'Calibri'

Read more
Related news
Comment
FACEBOOK