Skip to content

Commit 3f25267

Browse files
ta0a2000tvagenas
andauthored
fix: fix text dir attribute (#281)
fix: fix text dir attribute Signed-off-by: Panos Vagenas <[email protected]> Co-authored-by: Panos Vagenas <[email protected]>
1 parent 339bbd4 commit 3f25267

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • docling_core/transforms/serializer

docling_core/transforms/serializer/html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def serialize(
395395

396396
text_dir = get_text_direction(content)
397397
if text_dir == "rtl":
398-
opening_tag += f' dir="{dir}"'
398+
opening_tag += f' dir="{text_dir}"'
399399

400400
body += f"<{opening_tag}>{content}</{celltag}>"
401401
body += "</tr>"

0 commit comments

Comments
 (0)