scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.27k stars 501 forks source link

Strikethrough Support #339

Open parkerhancock opened 6 years ago

parkerhancock commented 6 years ago

For several applications, I need support for formatting text with a strikethrough option. The OpenXML spec defines essentially three states:

DrawingML Text Run Properties

A first implementation as a True/False .strikethrough method for sngStrike on a text run would be great (e.g. like bold and italic). Later, a more complete one modeled on the .underline method could also support the double strikethrough attribute.

Thanks!

parkerhancock commented 6 years ago

FYI, needed this badly enough I went ahead and added it. Properly formatted PR coming soon!

amsjacks commented 6 years ago

Just a note to say that I also need this, so I'm looking forward to the PR!