Quantcast
Channel: How do I apply both bold and italics in python-docx? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Wondercricket for How do I apply both bold and italics in python-docx?

The add_run method will return a new instance of Run each time it is called. You need create a single instance and then apply italic and boldimport docxword = 'Dictionary'doc = docx.Document()p =...

View Article



How do I apply both bold and italics in python-docx?

I'm working on making a dictionary. I'm using python-docx to put it into MS Word. I can easily make it bold, or italics, but can't seem to figure out how to do both. Here's the basics:import docxword =...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>