Skip to content

Commit 0311ab2

Browse files
author
Steve Canny
committed
run: convert Run.italic to Run.font pass-through
1 parent e728634 commit 0311ab2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docx/text/run.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,17 @@ def hidden(self):
220220
"""
221221
return 'vanish'
222222

223-
@boolproperty
223+
@property
224224
def italic(self):
225225
"""
226226
Read/write tri-state value. When |True|, causes the text of the run
227227
to appear in italics.
228228
"""
229-
return 'i'
229+
return self.font.italic
230+
231+
@italic.setter
232+
def italic(self, value):
233+
self.font.italic = value
230234

231235
@boolproperty
232236
def imprint(self):

0 commit comments

Comments
 (0)