Skip to content

Commit e728634

Browse files
author
Steve Canny
committed
run: convert Run.bold to Run.font pass-through
1 parent 277b46c commit e728634

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
@@ -143,12 +143,16 @@ def all_caps(self):
143143
"""
144144
return 'caps'
145145

146-
@boolproperty
146+
@property
147147
def bold(self):
148148
"""
149149
Read/write. Causes the text of the run to appear in bold.
150150
"""
151-
return 'b'
151+
return self.font.bold
152+
153+
@bold.setter
154+
def bold(self, value):
155+
self.font.bold = value
152156

153157
def clear(self):
154158
"""

0 commit comments

Comments
 (0)