Skip to content

Commit

Permalink
Remove trim
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Nov 9, 2023
1 parent b96c0f9 commit bf1bfc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl TextWidget {
// Ensure Parley layout is initialised
if self.layout.is_none() {
let mut lcx = parley::LayoutContext::new();
let mut layout_builder = lcx.ranged_builder(font_cx, self.text.trim(), 1.0);
let mut layout_builder = lcx.ranged_builder(font_cx, &self.text, 1.0);
layout_builder.push_default(&parley::style::StyleProperty::Brush(ParleyBrush(
Brush::Solid(Color::rgb8(255, 255, 255)),
)));
Expand Down

0 comments on commit bf1bfc2

Please sign in to comment.