From 2b135fe333d8c8abe2c7e5f82d8bcac2cdaad12e Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 9 Dec 2024 20:52:24 +0100 Subject: [PATCH] Prepare for follow-on change --- experiments/2024-12-09/src/render/text.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/experiments/2024-12-09/src/render/text.rs b/experiments/2024-12-09/src/render/text.rs index dc9fcd104..0f5d1e09c 100644 --- a/experiments/2024-12-09/src/render/text.rs +++ b/experiments/2024-12-09/src/render/text.rs @@ -83,8 +83,10 @@ impl TextRenderer { attrs = attrs.color(glyphon::Color::rgb(0, 127, 0)); } + let line = format!("{op}"); + buffer.lines.push(glyphon::BufferLine::new( - format!("{op}"), + line, glyphon::cosmic_text::LineEnding::Lf, glyphon::AttrsList::new(attrs), glyphon::Shaping::Advanced,