Skip to content

Commit 66f2b4b

Browse files
committed
Fixed hanging/firstLine for paragraph level properties
1 parent 389aba6 commit 66f2b4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pydocx/export/html.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ def export_listing_paragraph_property_indentation(
467467

468468
level_ind_left = level_properties.to_int('indentation_left', default=0)
469469
level_ind_hanging = level_properties.to_int('indentation_hanging', default=0)
470+
level_ind_first_line = level_properties.to_int('indentation_first_line', default=0)
471+
# There are cases when hanging is not defined for level and instead is used firstLine
472+
level_ind_hanging = level_ind_hanging or level_ind_first_line
470473

471474
paragraph_ind_left = paragraph_properties.to_int('indentation_left', default=0)
472475
paragraph_ind_hanging = paragraph_properties.to_int('indentation_hanging', default=0)

0 commit comments

Comments
 (0)