I am using the Python docx-mailmerge library to create a docx. But something is not like my hope.
My code:
from mailmerge import MailMerge
template='example.docx'
document_1 = MailMerge(template)
document_1.merge(misscount='>>> CSS Network Latencies\n CRS-4678: Successful get misscount 30 for Cluster Synchronization Services.')
document_1.write('aaa.docx')
The ouptput in the docx is:
But my hope is:
I want the second line start with 4 space. What should i do?