Skip to content

Commit fbb16fd

Browse files
authored
Merge pull request #72 from vvalchev/fix-setting-table-cell-color
Fixed #71: Error applying color to table cells.
2 parents 75846af + f85aa19 commit fbb16fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

html4docx/h4d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ def add_styles_to_table_cell(self, styles, doc_cell, cell_row):
10771077
if color:
10781078
for paragraph in doc_cell.paragraphs:
10791079
for run in paragraph.runs:
1080-
run.font.color.rgb = color
1080+
run.font.color.rgb = RGBColor(*color)
10811081

10821082
# Set vertical align (for individual cells)
10831083
if 'vertical-align' in styles:

0 commit comments

Comments
 (0)