Skip to content

Commit

Permalink
fix: ww test
Browse files Browse the repository at this point in the history
  • Loading branch information
thearchitector committed Dec 18, 2023
1 parent a401101 commit 3abac30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion styled_prose/stylesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def _to_reportlab(self) -> RLPStyle:
# if an alignment, convert to the proper integer literal
elif field == "alignment":
value = getattr(RLEnums, f"TA_{value.upper()}")
elif field == "word_wrap" and value:
elif field == "text_direction" and value:
field = "word_wrap"
value = value.upper()
elif field == "line_height":
field = "leading"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stylesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def clear_cache():
"name": "default",
"font_color": "#ff00ff",
"alignment": "justify",
"word_wrap": "rtl",
"text_direction": "rtl",
"line_height": 20,
},
RLPStyle(
Expand Down

0 comments on commit 3abac30

Please sign in to comment.