added props for sub and super
tested on word for macOS, version 16.17 (180909). Documentation found here: http://www.datypic.com/sc/ooxml/e-w_vertAlign-1.html
This commit is contained in:
parent
b84b52e97e
commit
01b2f2e397
@ -411,6 +411,8 @@ class RichText(object):
|
||||
color=None,
|
||||
highlight=None,
|
||||
size=None,
|
||||
subscript=None,
|
||||
superscript=None,
|
||||
bold=False,
|
||||
italic=False,
|
||||
underline=False,
|
||||
@ -438,6 +440,10 @@ class RichText(object):
|
||||
if size:
|
||||
prop += u'<w:sz w:val="%s"/>' % size
|
||||
prop += u'<w:szCs w:val="%s"/>' % size
|
||||
if subscript:
|
||||
prop += u'<w:vertAlign w:val="subscript"/>'
|
||||
if superscript:
|
||||
prop += u'<w:vertAlign w:val="superscript"/>'
|
||||
if bold:
|
||||
prop += u'<w:b/>'
|
||||
if italic:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user