Merge pull request #482 from dreizehnutters/master

fixed element properties for highlighted text
This commit is contained in:
Eric Lapouyade 2023-03-12 10:41:57 +01:00 committed by GitHub
commit 6e51079b2a
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