mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Schedule builder - fixing cell alignment #3154
Noticed that it's actually not merging cell style with col style as I did before but just prioritizing cell style if it's defined
This commit is contained in:
@@ -243,7 +243,7 @@ class Scheduler:
|
|||||||
p_tags = td.getElementsByType(P)
|
p_tags = td.getElementsByType(P)
|
||||||
|
|
||||||
col_style = self.get_style(column_styles[tdi], styles)
|
col_style = self.get_style(column_styles[tdi], styles)
|
||||||
final_cell_style = col_style | cell_style
|
final_cell_style = cell_style or col_style
|
||||||
box_alignment = self.get_box_alignment(final_cell_style)
|
box_alignment = self.get_box_alignment(final_cell_style)
|
||||||
wrap_text = final_cell_style.get("wrap-option", None) == "wrap"
|
wrap_text = final_cell_style.get("wrap-option", None) == "wrap"
|
||||||
if p_tags:
|
if p_tags:
|
||||||
|
|||||||
Reference in New Issue
Block a user