Skip to content

Commit

Permalink
text: Add support for justify in HTML
Browse files Browse the repository at this point in the history
The align attribute in <p> should also accept "justify".
  • Loading branch information
kjarosh authored and torokati44 committed Dec 3, 2024
1 parent bd89e5b commit 48ffbfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/html/text_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,8 @@ impl FormatSpans {
format.align = Some(swf::TextAlign::Center)
} else if align == WStr::from_units(b"right") {
format.align = Some(swf::TextAlign::Right)
} else if align == WStr::from_units(b"justify") {
format.align = Some(swf::TextAlign::Justify)
}
}
}
Expand Down

0 comments on commit 48ffbfa

Please sign in to comment.