mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
Typo fixes
This commit is contained in:
parent
3bb002e61f
commit
bc27971ac6
@ -27,6 +27,7 @@ PANGO_STYLE = {
|
||||
'oblique': Pango.Style.OBLIQUE,
|
||||
}
|
||||
|
||||
|
||||
class TextFragment(object):
|
||||
"""Text renderer using Pango.
|
||||
|
||||
@ -55,7 +56,7 @@ class TextFragment(object):
|
||||
' ', '<span letter_spacing="%i"> </span>' % (
|
||||
word_spacing + letter_spacing,))
|
||||
markup = '<span letter_spacing="%i">%s</span>' % (
|
||||
letter_spacing , markup)
|
||||
letter_spacing, markup)
|
||||
attributes_list = Pango.parse_markup(markup, -1, '\x00')[1]
|
||||
self.layout.set_attributes(attributes_list)
|
||||
if width is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user