fixed element properties for highlighted text

This commit is contained in:
geb 2023-03-01 09:07:18 +01:00 committed by GitHub
parent 708581fa6e
commit 9af9d9e69b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ class RichText(object):
if highlight:
if highlight[0] == '#':
highlight = highlight[1:]
prop += u'<w:highlight w:val="%s"/>' % highlight
prop += u'<w:shd w:fill="%s"/>' % highlight
if size:
prop += u'<w:sz w:val="%s"/>' % size
prop += u'<w:szCs w:val="%s"/>' % size