1

I have created a template and I successfully write to variables like this:

tpl = DocxTemplate(r"template.docx")

context = ({"issue_date" : "16-Jan 2021", "na_us_guid_new": "1. 13-Jan-2021: abc"})
tpl.render(context)
tpl.save(r"testing.docx")

I need to bold and underline this : 13-Jan-2021. But I haven't found any resource. How do I do that?

p_sutherland
  • 471
  • 1
  • 11
  • 21
template
  • 65
  • 4

1 Answers1

0

Bold and underline the {{issue_date}} expression in your template document:

screenshot from Word

p_sutherland
  • 471
  • 1
  • 11
  • 21